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 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. description = 'Code of the Compute Engine task processing project analysis reports'
  2. sonarqube {
  3. properties {
  4. property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Task :: Project Analysis"
  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. configurations {
  23. tests
  24. testCompile.extendsFrom compileOnly
  25. }
  26. dependencies {
  27. // please keep the list grouped by configuration and ordered by name
  28. compile 'org.slf4j:jul-to-slf4j'
  29. compile 'org.slf4j:slf4j-api'
  30. compileOnly 'com.google.code.findbugs:jsr305'
  31. compileOnly 'com.googlecode.java-diff-utils:diffutils'
  32. compileOnly project(':sonar-core')
  33. compileOnly project(':server:sonar-ce-task')
  34. compileOnly project(':server:sonar-db-dao')
  35. compileOnly project(':server:sonar-process')
  36. compileOnly project(':server:sonar-server-common')
  37. compileOnly project(':sonar-plugin-api')
  38. compileOnly project(':sonar-duplications')
  39. testCompile 'com.google.code.findbugs:jsr305'
  40. testCompile 'com.h2database:h2'
  41. testCompile 'com.tngtech.java:junit-dataprovider'
  42. testCompile 'junit:junit'
  43. testCompile 'org.apache.logging.log4j:log4j-api'
  44. testCompile 'org.apache.logging.log4j:log4j-core'
  45. testCompile 'org.assertj:assertj-core'
  46. testCompile 'org.assertj:assertj-guava'
  47. testCompile 'org.mockito:mockito-core'
  48. testCompile 'org.reflections:reflections'
  49. testCompile project(':server:sonar-db-testing')
  50. testCompile project(path: ":server:sonar-ce-task", configuration: "tests")
  51. testCompile project(path: ":server:sonar-server", configuration: "tests")
  52. testCompile project(path: ":server:sonar-server-common", configuration: "tests")
  53. }
  54. task testJar(type: Jar) {
  55. classifier = 'tests'
  56. from sourceSets.test.output
  57. }
  58. artifacts {
  59. tests testJar
  60. }