-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (75 loc) · 3.01 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
group 'dk.bankdata.gradle.swagger'
version '2.0.3-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile(group: 'io.swagger.core.v3', name: 'swagger-jaxrs2', version: '2.0.3')
compile(group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.1')
testCompile(group: 'junit', name: 'junit', version: '4.12')
testCompile(group: 'io.openapitools.jackson.dataformat', name: 'jackson-dataformat-hal', version: '1.0.4')
testCompile(group: 'io.openapitools.hal', name: 'swagger-hal', version: '1.0.4')
testCompile(group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.1')
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from groovydoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: project.hasProperty('ossrhUsername') ? ossrhUsername : '',
password: project.hasProperty('ossrhPassword') ? ossrhPassword : '')
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: project.hasProperty('ossrhUsername') ? ossrhUsername : '',
password: project.hasProperty('ossrhPassword') ? ossrhPassword : '')
}
pom.project {
name 'Gradle Swagger Plugin'
description 'Gradle plugin for generating OpenAPI specification using Swagger'
packaging 'jar'
url 'https://github.com/Bankdata/gradle-swagger-plugin'
scm {
connection 'scm:git:https://github.com/Bankdata/gradle-swagger-plugin.git'
developerConnection 'scm:git:https://github.com/Bankdata/gradle-swagger-plugin.git'
url 'https://github.com/Bankdata/gradle-swagger-plugin'
tag 'HEAD'
}
licenses {
license {
name 'The MIT License'
url 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id 'lange'
name 'Thor Anker Kvisgård Lange'
email '[email protected]'
organization 'Bankdata'
organizationUrl 'https://www.bankdata.dk'
}
}
}
}
}
}