@@ -34,11 +34,18 @@ version = "1.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
/*
@@ -55,8 +62,8 @@ dependencies {
55
62
dependencies {
56
63
compile(group : " com.fasterxml.jackson.core" , name : " jackson-databind" , version : " 2.9.9" );
57
64
compile(group : " com.google.guava" , name : " guava" , version : " 25.1-android" );
58
- compile(group : " com.github.java-json-tools" , name : " jackson-coreutils" , version : " 1.10 " );
59
- compile(group : " com.github.fge " , name : " uri-template" , version : " 0.9 " );
65
+ compile(group : " com.github.java-json-tools" , name : " jackson-coreutils" , version : " 1.11-SNAPSHOT " );
66
+ compile(group : " com.github.java-json-tools " , name : " uri-template" , version : " 0.10-SNAPSHOT " );
60
67
// FIXME: no javadoc
61
68
// FIXME: update beyond 1.7.7.x once we're Java 8 or better.
62
69
compile(group : " org.mozilla" , name : " rhino" , version : " 1.7.7.2" );
@@ -249,7 +256,6 @@ uploadArchives {
249
256
}
250
257
}
251
258
252
- ext. forRelease = ! version. endsWith(" -SNAPSHOT" );
253
259
signing {
254
260
required { forRelease && gradle. taskGraph. hasTask(" uploadArchives" ) };
255
261
sign configurations. archives;
0 commit comments