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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 'org.slf4j:jul-to-slf4j'
  28. compile 'org.slf4j:slf4j-api'
  29. compile project(':server:sonar-db-dao')
  30. compileOnly 'com.google.code.findbugs:jsr305'
  31. compileOnly project(':server:sonar-ce-task')
  32. compileOnly project(':server:sonar-server-common')
  33. testCompile 'com.google.code.findbugs:jsr305'
  34. testCompile 'com.h2database:h2'
  35. testCompile 'com.tngtech.java:junit-dataprovider'
  36. testCompile 'junit:junit'
  37. testCompile 'org.apache.logging.log4j:log4j-api'
  38. testCompile 'org.apache.logging.log4j:log4j-core'
  39. testCompile 'org.assertj:assertj-core'
  40. testCompile 'org.assertj:assertj-guava'
  41. testCompile 'org.mockito:mockito-core'
  42. testCompile project(':sonar-plugin-api')
  43. testCompile project(':sonar-core')
  44. testCompile project(':server:sonar-db-testing')
  45. testCompile project(path: ":server:sonar-server-common", configuration: "tests")
  46. }