File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,18 @@ version = "2.2.12-SNAPSHOT";
34
34
sourceCompatibility = JavaVersion . VERSION_1_7 ;
35
35
targetCompatibility = JavaVersion . VERSION_1_7 ; // defaults to sourceCompatibility
36
36
37
+ ext. forRelease = ! version. endsWith(" -SNAPSHOT" );
38
+
37
39
/*
38
40
* Repositories to use
39
41
*/
40
42
repositories {
41
43
mavenCentral();
44
+ if (! forRelease) {
45
+ maven {
46
+ url " https://oss.sonatype.org/content/repositories/snapshots"
47
+ }
48
+ }
42
49
}
43
50
44
51
/*
@@ -54,7 +61,7 @@ dependencies {
54
61
*/
55
62
dependencies {
56
63
compile(group : " com.google.guava" , name : " guava" , version : " 25.1-android" );
57
- compile(group : " com.github.java-json-tools" , name : " json-schema-core" , version : " 1.2.10 " );
64
+ compile(group : " com.github.java-json-tools" , name : " json-schema-core" , version : " 1.2.12-SNAPSHOT " );
58
65
compile(group : " com.sun.mail" , name : " mailapi" , version : " 1.6.1" );
59
66
compile(group : " joda-time" , name : " joda-time" , version : " 2.9.7" );
60
67
compile(group : " com.googlecode.libphonenumber" , name : " libphonenumber" , version : " 8.0.0" );
@@ -280,7 +287,6 @@ uploadArchives {
280
287
}
281
288
}
282
289
283
- ext. forRelease = ! version. endsWith(" -SNAPSHOT" );
284
290
signing {
285
291
required { forRelease && gradle. taskGraph. hasTask(" uploadArchives" ) };
286
292
sign configurations. archives;
You can’t perform that action at this time.
0 commit comments