Add missing dependencies on testClasses (#30527)
This commit is contained in:
parent
6a8aa99e3f
commit
9a5555963b
|
@ -744,6 +744,7 @@ class BuildPlugin implements Plugin<Project> {
|
||||||
additionalTest.testClassesDir = test.testClassesDir
|
additionalTest.testClassesDir = test.testClassesDir
|
||||||
additionalTest.configure(commonTestConfig(project))
|
additionalTest.configure(commonTestConfig(project))
|
||||||
additionalTest.configure(config)
|
additionalTest.configure(config)
|
||||||
|
additionalTest.dependsOn(project.tasks.testClasses)
|
||||||
test.dependsOn(additionalTest)
|
test.dependsOn(additionalTest)
|
||||||
});
|
});
|
||||||
return test
|
return test
|
||||||
|
|
|
@ -34,6 +34,7 @@ File repositoryDir = new File(project.buildDir, "shared-repository")
|
||||||
|
|
||||||
/** A task to start the URLFixture which exposes the repositoryDir over HTTP **/
|
/** A task to start the URLFixture which exposes the repositoryDir over HTTP **/
|
||||||
task urlFixture(type: AntFixture) {
|
task urlFixture(type: AntFixture) {
|
||||||
|
dependsOn testClasses
|
||||||
doFirst {
|
doFirst {
|
||||||
repositoryDir.mkdirs()
|
repositoryDir.mkdirs()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue