11plugins {
22 // code formatting
3- id " com.diffplug.gradle.spotless" version " 3.1.0"
4- // bintray uploading
5- id " com.jfrog.bintray" version " 1.3.1"
3+ id " com.diffplug.spotless" version " 6.19.0"
64 // for downloading JRE6
7- id " de.undercouch.download" version " 2.0 .0"
5+ id " de.undercouch.download" version " 5.4 .0"
86}
97
108repositories {
@@ -19,7 +17,7 @@ sourceCompatibility = VER_JAVA
1917targetCompatibility = VER_JAVA
2018
2119dependencies {
22- testCompile " junit:junit:${ VER_JUNIT} "
20+ testImplementation " junit:junit:${ VER_JUNIT} "
2321}
2422
2523// //////////////////
@@ -86,9 +84,9 @@ task unzipJRE6(dependsOn: verifyJRE6, type: Copy) {
8684sourceCompatibility = 1.6
8785targetCompatibility = 1.6
8886def sep = System . getProperty(' path.separator' )
89- def bootClasspathStr = " ${ JRE6_HOME} /lib/rt.jar${ sep}${ JRE6_HOME} /lib/jsse.jar"
87+ def bootClasspathStr = project . files( " ${ JRE6_HOME} /lib/rt.jar${ sep}${ JRE6_HOME} /lib/jsse.jar" )
9088project. tasks. withType(AbstractCompile , { AbstractCompile ac ->
91- ac. options. bootClasspath = bootClasspathStr // options is always there but not defined on AbstractCompile so going to hit it anyway
89+ ac. options. bootstrapClasspath = bootClasspathStr // options is always there but not defined on AbstractCompile so going to hit it anyway
9290 ac. dependsOn(unzipJRE6)
9391})
9492
@@ -116,8 +114,8 @@ spotless {
116114
117115// we'll want the findbugs annotations (they don't have a 3.0.1 version)
118116dependencies {
119- compile ' com.google.code.findbugs:annotations:3.0.0'
120- compile ' com.google.code.findbugs:jsr305:3.0.0'
117+ implementation ' com.google.code.findbugs:annotations:3.0.0'
118+ implementation ' com.google.code.findbugs:jsr305:3.0.0'
121119}
122120
123121// the package of the jmi stub (which we're going to leave out of all the jars we make)
0 commit comments