3 sourceCompatibility = 1.8
4 targetCompatibility = 1.8
11 testImplementation "junit:junit:4.12"
16 java.srcDirs = ["src/annotations"]
17 java.outputDir = file("${buildDir}/annotations")
20 java.srcDirs = ["src/main"]
21 java.outputDir = file("${buildDir}/main")
22 compileClasspath += sourceSets.annotations.output
25 java.srcDirs = ["src/examples"]
26 java.outputDir = file("${buildDir}/examples")
27 compileClasspath += sourceSets.main.output
30 java.srcDirs = ["src/classes"]
31 java.outputDir = file("${buildDir}/classes")
32 compileClasspath += sourceSets.main.output + sourceSets.annotations.output
35 java.srcDirs = ["src/peers"]
36 java.outputDir = file("${buildDir}/peers")
37 compileClasspath += sourceSets.main.output + sourceSets.annotations.output
40 java.srcDirs = ["src/tests"]
41 java.outputDir = file("${buildDir}/tests")
42 compileClasspath += sourceSets.annotations.output + sourceSets.classes.output + sourceSets.peers.output
47 enableAssertions = true
52 include "**/*Test.class"
53 exclude "**/SplitInputStreamTest.class"
54 exclude "**/JPF_*.class"
56 // XXX Tests temporarily ignored because they are not fully supported in the Gradle build yet
57 new File("failing-tests.txt").eachLine { failedTestClass ->
58 def ignoredPath = "**/" + failedTestClass.replace(".", "/") + ".class"
65 description = "Compile all JPF core sources"
67 // These are automatic generated tasks from the Java Gradle Plugin.
68 // Gradle is able to infer the ordering of the source source sets
69 // due to the compileClasspath attribute
70 dependsOn compileTestJava, compileExamplesJava
73 defaultTasks "compile"