Add missing dependencies on testClasses (#30527)

This commit is contained in:
Alpar Torok 2018-05-14 16:06:56 +03:00 committed by GitHub
parent 6a8aa99e3f
commit 9a5555963b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -744,6 +744,7 @@ class BuildPlugin implements Plugin<Project> {
additionalTest.testClassesDir = test.testClassesDir
additionalTest.configure(commonTestConfig(project))
additionalTest.configure(config)
additionalTest.dependsOn(project.tasks.testClasses)
test.dependsOn(additionalTest)
});
return test

View File

@ -34,6 +34,7 @@ File repositoryDir = new File(project.buildDir, "shared-repository")
/** A task to start the URLFixture which exposes the repositoryDir over HTTP **/
task urlFixture(type: AntFixture) {
dependsOn testClasses
doFirst {
repositoryDir.mkdirs()
}