File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' java'
2
2
apply plugin : ' maven'
3
3
apply plugin : ' maven-publish'
4
-
4
+ apply plugin : ' signing '
5
5
6
6
group = ' com.unquietcode.tools.spring'
7
7
version = ' 4.1.4'
8
8
sourceCompatibility = 1.7
9
9
10
+
10
11
task wrapper (type : Wrapper ) {
11
- gradleVersion = ' 2.2.1'
12
- distributionUrl = ' http://services.gradle.org/distributions/gradle-2.2.1-all.zip'
12
+ gradleVersion = ' 2.3'
13
13
}
14
14
15
-
16
15
task sourcesJar (type : Jar , dependsOn : classes) {
17
16
classifier = ' sources'
18
17
from sourceSets. main. allSource
@@ -28,6 +27,10 @@ artifacts {
28
27
archives javadocJar
29
28
}
30
29
30
+ def AorB = { String a , String b ->
31
+ return a != null && ! a. trim(). isEmpty() ? a : b;
32
+ }
33
+
31
34
publishing {
32
35
publications {
33
36
mavenJava(MavenPublication ) {
@@ -39,7 +42,11 @@ publishing {
39
42
40
43
repositories {
41
44
maven {
42
- url " $buildDir /repo"
45
+ url AorB ( System . getProperty( " maven.deploy.repository " ), " $buildDir /repo" )
43
46
}
44
47
}
48
+ }
49
+
50
+ signing {
51
+ sign configurations. archives
45
52
}
Original file line number Diff line number Diff line change 1
- # Mon Jan 19 10:28:51 PST 2015
1
+ # Tue Mar 31 09:41:37 PDT 2015
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =http \://services.gradle.org/distributions/gradle-2.2.1-all .zip
6
+ distributionUrl =https \://services.gradle.org/distributions/gradle-2.3-bin .zip
You can’t perform that action at this time.
0 commit comments