Sha256: 7de469b829bad9549cb7409c29ad3ceb810ef8cee76cf5451aeba9c70971a7f6
Contents?: true
Size: 1.23 KB
Versions: 175
Compression:
Stored size: 1.23 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
175 entries across 175 versions & 1 rubygems