@@ -38,10 +38,9 @@ apply(plugin: "idea");
3838apply(plugin : " eclipse" );
3939apply(plugin : " net.ltgt.errorprone" );
4040
41+ apply(from : " project.gradle" );
42+
4143group = " com.github.java-json-tools" ;
42- version = " 1.2.13-SNAPSHOT" ;
43- sourceCompatibility = JavaVersion . VERSION_1_7 ;
44- targetCompatibility = JavaVersion . VERSION_1_7 ; // defaults to sourceCompatibility
4544
4645ext. forRelease = ! version. endsWith(" -SNAPSHOT" );
4746
@@ -75,47 +74,6 @@ dependencies {
7574 errorproneJavac(" com.google.errorprone:javac:9+181-r4173-1" )
7675}
7776
78- /*
79- * List of dependencies
80- */
81- dependencies {
82- compile(group : " com.fasterxml.jackson.core" , name : " jackson-databind" , version : " 2.9.9" );
83- compile(group : " com.google.guava" , name : " guava" , version : " 28.1-android" );
84- compile(group : " com.github.java-json-tools" , name : " jackson-coreutils" , version : " 1.11" );
85- compile(group : " com.github.java-json-tools" , name : " uri-template" , version : " 0.10" );
86- // FIXME: no javadoc
87- // FIXME: update beyond 1.7.7.x once we're Java 8 or better.
88- compile(group : " org.mozilla" , name : " rhino" , version : " 1.7.7.2" );
89- compile(group : " com.google.code.findbugs" , name : " jsr305" , version : " 3.0.2" );
90- testCompile(group : " org.testng" , name : " testng" , version : " 6.10" ) {
91- exclude(group : " junit" , module : " junit" );
92- exclude(group : " org.beanshell" , module : " bsh" );
93- exclude(group : " org.yaml" , module : " snakeyaml" );
94- };
95- testCompile(group : " org.mockito" , name : " mockito-core" , version : " 2.4.2" );
96- // FIXME: update to 3.x once we're off of Java 7.
97- testCompile(group : " org.assertj" , name : " assertj-core" , version : " 2.9.1" );
98- }
99-
100- javadoc {
101- options {
102- def currentJavaVersion = org.gradle.api.JavaVersion . current()
103- // FIXME: https://github.com/gradle/gradle/issues/11182
104- if (currentJavaVersion. compareTo(org.gradle.api.JavaVersion . VERSION_1_9 ) >= 0 ) {
105- addStringOption(" -release" , " 7" );
106- }
107- links(" https://docs.oracle.com/javase/7/docs/api/" );
108- links(" https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/3.0.1/" );
109- links(" https://fasterxml.github.io/jackson-databind/javadoc/2.2.0/" );
110- links(" https://fasterxml.github.io/jackson-core/javadoc/2.2.0/" );
111- links(" https://www.javadoc.io/doc/com.google.guava/guava/28.1-android/" );
112- links(" https://java-json-tools.github.io/btf/" );
113- links(" https://java-json-tools.github.io/msg-simple/" );
114- links(" https://java-json-tools.github.io/jackson-coreutils/" );
115- links(" https://java-json-tools.github.io/uri-template/" );
116- }
117- }
118-
11977/*
12078 * Necessary! Otherwise TestNG will not be used...
12179 *
@@ -251,7 +209,7 @@ uploadArchives {
251209
252210 scm {
253211 url " ${ scmUrl} " ;
254- connection " scm:git: ${ scmUrl} " ;
212+ connection " ${ scmUrl} " ;
255213 developerConnection " scm:git:${ scmUrl} " ;
256214 }
257215
0 commit comments