You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. description = 'Definition of a Compute Engine task and utility "framework" and classes to code one'
  2. sonarqube {
  3. properties {
  4. property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Task"
  5. }
  6. }
  7. sourceSets {
  8. test {
  9. resources {
  10. srcDirs += ['src/test/projects']
  11. }
  12. }
  13. }
  14. import org.apache.tools.ant.filters.ReplaceTokens
  15. processResources {
  16. filesMatching('build.properties') {
  17. filter ReplaceTokens, tokens: [
  18. 'buildNumber': release ? 'git rev-parse HEAD'.execute().text.trim() : 'N/A'
  19. ]
  20. }
  21. }
  22. dependencies {
  23. // please keep the list grouped by configuration and ordered by name
  24. compile 'org.picocontainer:picocontainer'
  25. compile 'org.slf4j:jul-to-slf4j'
  26. compile 'org.slf4j:slf4j-api'
  27. compile project(':server:sonar-process')
  28. compile project(':server:sonar-server-common')
  29. compile project(':sonar-core')
  30. compileOnly project(path: ':sonar-plugin-api')
  31. compileOnly 'com.google.code.findbugs:jsr305'
  32. testCompile 'ch.qos.logback:logback-access'
  33. testCompile 'ch.qos.logback:logback-classic'
  34. testCompile 'ch.qos.logback:logback-core'
  35. testCompile 'com.google.code.findbugs:jsr305'
  36. testCompile 'com.h2database:h2'
  37. testCompile 'com.tngtech.java:junit-dataprovider'
  38. testCompile 'junit:junit'
  39. testCompile 'org.apache.logging.log4j:log4j-api'
  40. testCompile 'org.apache.logging.log4j:log4j-core'
  41. testCompile 'org.assertj:assertj-core'
  42. testCompile 'org.assertj:assertj-guava'
  43. testCompile 'org.mockito:mockito-core'
  44. testCompile 'org.reflections:reflections'
  45. testCompile project(':server:sonar-db-testing')
  46. }
  47. task testJar(type: Jar) {
  48. classifier = 'tests'
  49. from sourceSets.test.output
  50. }
  51. configurations {
  52. tests
  53. }
  54. artifacts {
  55. tests testJar
  56. }