}
+compileTestJava {
+
+ doFirst {
+ if (JAVA_VERSION.equals("1.8")) {
+ sourceCompatibility = 1.8
+ targetCompatibility = 1.8
+ } else if (JAVA_VERSION.equals("11")) {
+ sourceCompatibility = 11
+ targetCompatibility = 11
+
+ options.compilerArgs = [
+ '--module-path', sourceSets.modules.compileClasspath.asPath,
+ '--add-modules', j11modules
+ ]
+ }
+ print ("Setting target compatibility to "+targetCompatibility+"\n")
+ }
+
+}
+
clean {
delete sourceSets.main.java.outputDir
}
test {
dependsOn prepare
dependsOn compileJava
+ dependsOn compileTestJava
useTestNG {
includeGroups testngGroups
+ preserveOrder true
}
+
workingDir = jalviewDir
//systemProperties 'clover.jar' System.properties.clover.jar
+ if (JAVA_VERSION.equals("1.8")) {
+ sourceCompatibility = 1.8
+ targetCompatibility = 1.8
+ } else if (JAVA_VERSION.equals("11")) {
+ sourceCompatibility = 11
+ targetCompatibility = 11
+
+ jvmArgs += [
+ '--module-path',
+ sourceSets.modules.compileClasspath.asPath,
+ '--add-modules',
+ j11modules
+ ]
+ }
+ print ("Setting target compatibility to "+targetCompatibility+"\n")
}
task buildIndices(type: JavaExec) {