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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. sonarqube {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Server"
  4. }
  5. }
  6. sourceSets {
  7. test {
  8. resources {
  9. srcDirs += ['src/test/projects']
  10. }
  11. }
  12. }
  13. import org.apache.tools.ant.filters.ReplaceTokens
  14. processResources {
  15. filesMatching('build.properties') {
  16. filter ReplaceTokens, tokens: [
  17. 'buildNumber': release ? 'git rev-parse HEAD'.execute().text.trim() : 'N/A'
  18. ]
  19. }
  20. }
  21. dependencies {
  22. // please keep the list grouped by configuration and ordered by name
  23. compile 'ch.qos.logback:logback-access'
  24. compile 'ch.qos.logback:logback-classic'
  25. compile 'ch.qos.logback:logback-core'
  26. compile 'com.google.code.gson:gson'
  27. compile 'com.google.protobuf:protobuf-java'
  28. compile 'commons-dbutils:commons-dbutils'
  29. compile 'io.jsonwebtoken:jjwt-api'
  30. compile 'io.jsonwebtoken:jjwt-impl'
  31. compile 'org.apache.httpcomponents:httpclient'
  32. compile 'org.apache.logging.log4j:log4j-api'
  33. compile 'org.apache.tomcat.embed:tomcat-embed-core'
  34. compile 'org.apache.commons:commons-dbcp2'
  35. compile 'org.picocontainer:picocontainer'
  36. compile 'org.slf4j:jul-to-slf4j'
  37. compile 'org.slf4j:slf4j-api'
  38. compile 'org.sonarsource.update-center:sonar-update-center-common'
  39. compile 'org.mindrot:jbcrypt'
  40. compile project(':server:sonar-ce-common')
  41. compile project(':server:sonar-ce-task')
  42. compile project(':server:sonar-ce-task-projectanalysis')
  43. compile project(':server:sonar-db-dao')
  44. compile project(':server:sonar-db-migration')
  45. compile project(':server:sonar-process')
  46. compile project(':server:sonar-server-common')
  47. compile project(':sonar-core')
  48. compile project(':sonar-duplications')
  49. compile project(':sonar-scanner-protocol')
  50. compile project(':sonar-markdown')
  51. compile project(path: ':sonar-plugin-api', configuration: 'shadow')
  52. compile project(':sonar-plugin-api-impl')
  53. compile project(':sonar-ws')
  54. compileOnly 'com.google.code.findbugs:jsr305'
  55. // not a transitive dep. At runtime lib/jdbc/h2 is used
  56. compileOnly 'com.h2database:h2'
  57. testCompile 'com.github.kevinsawicki:http-request'
  58. testCompile 'com.google.code.findbugs:jsr305'
  59. testCompile 'com.h2database:h2'
  60. testCompile 'com.squareup.okhttp3:mockwebserver'
  61. testCompile 'com.tngtech.java:junit-dataprovider'
  62. testCompile 'junit:junit'
  63. testCompile 'org.apache.logging.log4j:log4j-api'
  64. testCompile 'org.apache.logging.log4j:log4j-core'
  65. testCompile 'org.assertj:assertj-core'
  66. testCompile 'org.assertj:assertj-guava'
  67. testCompile 'org.eclipse.jetty:jetty-server'
  68. testCompile 'org.eclipse.jetty:jetty-servlet'
  69. testCompile 'org.hamcrest:hamcrest-all'
  70. testCompile 'org.mockito:mockito-core'
  71. testCompile 'org.subethamail:subethasmtp'
  72. testCompile project(':server:sonar-db-testing')
  73. testCompile project(path: ":server:sonar-server-common", configuration: "tests")
  74. testCompile project(':sonar-testing-harness')
  75. runtime 'io.jsonwebtoken:jjwt-jackson'
  76. }
  77. task testJar(type: Jar) {
  78. classifier = 'tests'
  79. from sourceSets.test.output
  80. }
  81. configurations {
  82. tests
  83. }
  84. artifacts {
  85. tests testJar
  86. }