Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. apply plugin: 'java'
  2. //
  3. // more plugins if any
  4. //
  5.  
  6. configurations {
  7. //..
  8. //if any
  9. //..
  10. }
  11.  
  12. // Define sourceSets to tell Gradle where is actual main code, test code, etc code.
  13. // This is NOT required, if your source code folder structure follows Gradle standard folder structure
  14.  
  15. sourceSets {
  16. main {
  17. java {
  18. srcDir 'src/java'
  19. }
  20. }
  21. test {
  22. java {
  23. srcDir 'test/java'
  24. }
  25. resources {
  26. srcDir 'test/resources'
  27. srcDir 'conf'
  28. }
  29. }
  30. integrationTest {
  31. java {
  32. srcDir 'src/java-test'
  33. }
  34. }
  35. }
  36.  
  37. // Define dependencies
  38. dependencies {
  39. // Compilation
  40. compile "org.groupd.id:someartifactid1:1.0.0"
  41. compile "org.groupd.id:someartifactid2:1.0.0@zip"
  42. compile group: "org.groupd.id", artifact: "someartifactid3", version: '0.0.1'
  43. compile srcDir "libs/thirdparty"
  44. compile srcDir "libs/thirdparty2/*.jar"
  45.  
  46. // Unit Tests
  47. testCompile
  48.  
  49. // etc
  50.  
  51. // etc
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement