Advertisement
Guest User

gradlew.build-file

a guest
Aug 18th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. allprojects {
  2. group = 'foo-project'
  3. version = '0.1'
  4.  
  5. }
  6.  
  7. configurations.all {
  8. // check for updates every build
  9. resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
  10. }
  11.  
  12. subprojects {
  13. apply plugin: 'java';
  14. apply plugin: 'eclipse';
  15. apply plugin: 'idea';
  16. apply plugin: 'jacoco';
  17. apply plugin: 'checkstyle';
  18.  
  19. checkstyle {
  20. toolVersion = "6.5"
  21. }
  22.  
  23. jacoco {
  24. toolVersion = "0.7.7.201606060606"
  25. }
  26.  
  27. test {
  28. jacoco {
  29. append = false
  30. destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
  31. }
  32. }
  33.  
  34. tasks.withType(Javadoc) {
  35. options.addStringOption('Xdoclint:none', '-quiet')
  36. }
  37.  
  38. javadoc {
  39. options.tags = ['require', 'ensure']
  40. }
  41.  
  42. repositories {
  43. mavenLocal()
  44. maven { url 'http://valid.artifactory.url//artifactory/libs-release/' }
  45. }
  46.  
  47. dependencies {
  48. // The Failing dependencies
  49. compile group: 'bar-group', name: 'common', version: '0.1-SNAPSHOT', changing: true
  50. compile group: 'bar-group', name: 'clients', version: '0.1-SNAPSHOT', changing: true
  51.  
  52. // Logging via Log4J 2.0 using the SLF4J API
  53. compile group: 'org.slf4j', name:'slf4j-api', version: '1.7.12'
  54. compile group: 'org.slf4j', name:'slf4j-log4j12', version: '1.7.12'
  55. compile group: 'org.apache.derby', name: 'derby', version: '10.9.1.0'
  56.  
  57. // Unit testing with JUnit
  58. testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
  59. testCompile group: 'junit', name: 'junit', version: '4.12', {
  60. exclude group: "org.hamcrest", module: "hamcrest-core"
  61. }
  62. testCompile "org.testfx:testfx-core:4.0.+"
  63. testCompile "org.testfx:testfx-junit:4.0+"
  64. testCompile "org.testfx:testfx-legacy:4.0.+", {
  65. exclude group: "junit", module: "junit"
  66. }
  67. testCompile group: 'org.testfx', name: 'openjfx-monocle', version: '1.8.0_20'
  68.  
  69. // Mocking with Mockito
  70. testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
  71. testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.2'
  72. testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.2'
  73. }
  74.  
  75. sourceSets {
  76. main {
  77. java {
  78. srcDir 'src/main/java'
  79. }
  80. resources {
  81. srcDir 'resources'
  82. }
  83. }
  84.  
  85. test {
  86. java {
  87. srcDir 'src/test/java'
  88. }
  89. resources {
  90. srcDir 'resources'
  91. }
  92. }
  93. }
  94. test {
  95. jvmArgs = [
  96. "-Djava.awt.headless=true",
  97. "-Dtestfx.robot=glass",
  98. "-Dtestfx.headless=true",
  99. "-Dprism.order=sw",
  100. "-Dprism.text=t2K",
  101. "-Dglass.platform=Monocle",
  102. "-Dmonocle.platform=Headless",
  103. "-Dprism.verbose=true",
  104. "-Dprism.debugFonts=true"
  105. ]
  106. }
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement