
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.54 KB | hits: 13 | expires: Never
Is there a way to specify dependencies for a newly created sourceset in gradle?
sourceSets{
servicetest{
java.srcDirs = [//path to servicetests]
}
}
dependencies{
servicetest(group: 'org.testng', name: 'testng', version: '5.8', classifier: 'jdk15')
}
configurations {
serviceTestCompile
}
sourceSets {
serviceTest {
compileClasspath = configurations.serviceTestCompile
}
}
dependencies {
serviceTestCompile "org.testng:testng:5.8"
}