/
build.gradle
105 lines (87 loc) · 2.95 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apply plugin: "groovy"
apply plugin: "maven"
apply plugin: "signing"
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.springframework:spring-webmvc:4.0.0.RELEASE'
testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
testCompile files("${System.properties['java.home']}/../lib/tools.jar")
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
repositories {
mavenCentral()
}
sourceSets {
generated
}
ext {
SONATYPE_USER = System.env.SONATYPE_USER
SONATYPE_PASSWORD = System.env.SONATYPE_PASSWORD
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
sign configurations.archives
required { false }
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: "$SONATYPE_USER", password: "$SONATYPE_PASSWORD")
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: "$SONATYPE_USER", password: "$SONATYPE_PASSWORD")
}
/*repository(url: "file://localhost/tmp/myRepo/")*/
pom.project {
name "gradle-springdoc-plugin"
packaging "jar"
description "A gradle plugin to generate html rest api doc from spring mvc annotations."
url "http://github.com/thilko/gradle-springdoc-plugin"
scm {
url "https://github.com/thilko/gradle-springdoc-plugin.git"
connection "https://github.com/thilko/gradle-springdoc-plugin.git"
developerConnection "https://github.com/thilko/gradle-springdoc-plugin.git"
}
licenses {
license {
name "MIT"
url "http://opensource.org/licenses/MIT"
distribution "repo"
}
}
developers {
developer {
id "thilko"
name "Thilko Richter"
email "springdoc@thilko.com"
timezone "+1"
properties {
picUrl "http://www.gravatar.com/avatar/6682c3909950f44d635929ef21ec08c8.png"
}
}
}
groupId = 'com.thilko.spring'
artifactId = 'gradle-springdoc-plugin'
version = "0.7"
}
}
}
}