Sha256: a5decb7915dacb403f91b07ab264946508554064cc998a0e3cbdb646fc852d70
Contents?: true
Size: 1.22 KB
Versions: 16
Compression:
Stored size: 1.22 KB
Contents
subprojects { project -> apply plugin: "java" sourceSets { // Verify that the tests are working by running them against the example code. // By replacing the "main" sourceSet with the example code we avoid any collisions // with solution code that may have been included as a "starter" (e.g. etl). main { java.srcDirs = ["src/example/java"] } project["compileJava"].doFirst { compileTask -> println " (source = ${compileTask.source.asPath})" } starterSource { java.srcDirs = ["src/main/java"] } project["compileStarterSourceJava"].doFirst { compileTask -> println " (source = ${compileTask.source.asPath})" } // In lieu of being able to disable @Ignore in JUnit tests, we filter // those annotations, placing the edited tests in the path named here. test { java.srcDirs = ["build/gen/test/java"] } project["compileTestJava"].doFirst { compileTask -> println " (source = ${compileTask.source.asPath})" } } task copyTestsFilteringIgnores(type: Copy) { from "src/test/java" into "build/gen/test/java" filter { line -> line.contains("@Ignore") ? "" : line } } test.dependsOn(copyTestsFilteringIgnores) }
Version data entries
16 entries across 16 versions & 1 rubygems