Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is there a way to specify dependencies for a newly created sourceset in gradle?
  2. sourceSets{
  3.                servicetest{
  4.                            java.srcDirs = [//path to servicetests]
  5.                }
  6.     }
  7.        
  8. dependencies{
  9.                 servicetest(group: 'org.testng', name: 'testng', version: '5.8', classifier: 'jdk15')
  10.    }
  11.        
  12. configurations {
  13.     serviceTestCompile
  14. }
  15.  
  16. sourceSets {
  17.     serviceTest {
  18.         compileClasspath = configurations.serviceTestCompile
  19.     }
  20. }
  21.  
  22. dependencies {
  23.     serviceTestCompile "org.testng:testng:5.8"
  24. }