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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. description = 'Code relating to the Compute Engine shared between the Compute Engine and the Web Server'
  2. sonarqube {
  3. properties {
  4. property 'sonar.projectName', "${projectTitle} :: Compute Engine :: Common"
  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. testCompile.extendsFrom compileOnly
  24. }
  25. dependencies {
  26. // please keep the list grouped by configuration and ordered by name
  27. compile 'com.google.guava:guava'
  28. compile 'org.slf4j:jul-to-slf4j'
  29. compile 'org.slf4j:slf4j-api'
  30. compile project(':server:sonar-ce-task')
  31. compile project(':server:sonar-db-dao')
  32. compile project(':server:sonar-server-common')
  33. compile project(':sonar-core')
  34. compile project(path: ':sonar-plugin-api', configuration: 'shadow')
  35. compileOnly 'com.google.code.findbugs:jsr305'
  36. testCompile 'com.google.code.findbugs:jsr305'
  37. testCompile 'com.tngtech.java:junit-dataprovider'
  38. testCompile 'commons-lang:commons-lang'
  39. testCompile 'junit:junit'
  40. testCompile 'org.apache.logging.log4j:log4j-api'
  41. testCompile 'org.apache.logging.log4j:log4j-core'
  42. testCompile 'org.assertj:assertj-core'
  43. testCompile 'org.assertj:assertj-guava'
  44. testCompile 'org.hamcrest:hamcrest-all'
  45. testCompile project(':sonar-plugin-api-impl')
  46. testCompile project(':server:sonar-db-testing')
  47. testCompile project(path: ":server:sonar-server-common", configuration: "tests")
  48. testRuntime 'com.h2database:h2'
  49. }