|
|
@@ -1,9 +1,17 @@
|
|
1
|
|
-subprojects {
|
|
|
1
|
+subprojects { project ->
|
|
2
|
2
|
apply plugin: "java"
|
|
3
|
3
|
|
|
4
|
4
|
sourceSets {
|
|
|
5
|
+ // Verify that the tests are working by running them against the example code.
|
|
|
6
|
+ // By replacing the "main" sourceSet with the example code we avoid any collisions
|
|
|
7
|
+ // with solution code that may have been included as a jumpstart (e.g. etl).
|
|
5
|
8
|
main {
|
|
6
|
|
- java.srcDirs = ['src/example/java']
|
|
|
9
|
+ java.srcDirs = ["src/example/java"]
|
|
|
10
|
+ }
|
|
|
11
|
+ println "Source directory for " + project.name + "'s main source set: " + main.java.srcDirs
|
|
|
12
|
+
|
|
|
13
|
+ starterSource {
|
|
|
14
|
+ java.srcDirs = ["src/main/java"]
|
|
7
|
15
|
}
|
|
8
|
16
|
}
|
|
9
|
17
|
}
|