@@ -34,11 +34,18 @@ version = "1.2.12-SNAPSHOT";
3434sourceCompatibility = JavaVersion . VERSION_1_7 ;
3535targetCompatibility = JavaVersion . VERSION_1_7 ; // defaults to sourceCompatibility
3636
37+ ext. forRelease = ! version. endsWith(" -SNAPSHOT" );
38+
3739/*
3840 * Repositories to use
3941 */
4042repositories {
4143 mavenCentral();
44+ if (! forRelease) {
45+ maven {
46+ url " https://oss.sonatype.org/content/repositories/snapshots"
47+ }
48+ }
4249}
4350
4451/*
@@ -55,8 +62,8 @@ dependencies {
5562dependencies {
5663 compile(group : " com.fasterxml.jackson.core" , name : " jackson-databind" , version : " 2.9.9" );
5764 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 " );
6067 // FIXME: no javadoc
6168 // FIXME: update beyond 1.7.7.x once we're Java 8 or better.
6269 compile(group : " org.mozilla" , name : " rhino" , version : " 1.7.7.2" );
@@ -249,7 +256,6 @@ uploadArchives {
249256 }
250257}
251258
252- ext. forRelease = ! version. endsWith(" -SNAPSHOT" );
253259signing {
254260 required { forRelease && gradle. taskGraph. hasTask(" uploadArchives" ) };
255261 sign configurations. archives;
0 commit comments