I want to add additional source set in my gradle.build
and use separate test working directory for this source set. How to achieve it?
This config doesn't work, because it setups test.workingDir
per project.
apply plugin: 'java'
sourceSets {
configurationTest {
java {
compileClasspath += main.output + test.compileClasspath + main.compileClasspath
runtimeClasspath += main.output + test.compileClasspath + main.compileClasspath
srcDir file('src/configuration-test/java')
}
}
}
test {
useTestNG()
workingDir = 'src/configuration-test/working_dir'
}
Aucun commentaire:
Enregistrer un commentaire