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

Version Path
trackler-2.1.0.36 tracks/java/exercises/build.gradle
trackler-2.1.0.34 tracks/java/exercises/build.gradle
trackler-2.1.0.33 tracks/java/exercises/build.gradle
trackler-2.1.0.32 tracks/java/exercises/build.gradle
trackler-2.1.0.31 tracks/java/exercises/build.gradle
trackler-2.1.0.30 tracks/java/exercises/build.gradle
trackler-2.1.0.29 tracks/java/exercises/build.gradle
trackler-2.1.0.28 tracks/java/exercises/build.gradle
trackler-2.1.0.27 tracks/java/exercises/build.gradle
trackler-2.1.0.26 tracks/java/exercises/build.gradle
trackler-2.1.0.25 tracks/java/exercises/build.gradle
trackler-2.1.0.24 tracks/java/exercises/build.gradle
trackler-2.1.0.23 tracks/java/exercises/build.gradle
trackler-2.1.0.22 tracks/java/exercises/build.gradle
trackler-2.1.0.21 tracks/java/exercises/build.gradle
trackler-2.1.0.20 tracks/java/exercises/build.gradle