parent
11dc9fe249
commit
0227ac5690
|
@ -65,7 +65,7 @@ public class TestingConventionsTasks extends DefaultTask {
|
|||
public TestingConventionsTasks() {
|
||||
setDescription("Tests various testing conventions");
|
||||
// Run only after everything is compiled
|
||||
Boilerplate.getJavaSourceSets(getProject()).all(sourceSet -> dependsOn(sourceSet.getClassesTaskName()));
|
||||
Boilerplate.getJavaSourceSets(getProject()).all(sourceSet -> dependsOn(sourceSet.getOutput().getClassesDirs()));
|
||||
naming = getProject().container(TestingConventionRule.class);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ subprojects {
|
|||
test {
|
||||
mainProject.sourceSets.test.output.classesDirs.each { dir ->
|
||||
output.addClassesDir { dir }
|
||||
output.builtBy(mainProject.tasks.testClasses)
|
||||
}
|
||||
runtimeClasspath += mainProject.sourceSets.test.output
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue