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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. dependencies {
  14. // please keep the list grouped by configuration and ordered by name
  15. compile 'ch.qos.logback:logback-access'
  16. compile 'ch.qos.logback:logback-classic'
  17. compile 'ch.qos.logback:logback-core'
  18. compile 'commons-dbcp:commons-dbcp'
  19. compile 'commons-dbutils:commons-dbutils'
  20. compile 'com.googlecode.java-diff-utils:diffutils'
  21. compile 'com.google.code.gson:gson'
  22. compile 'com.google.protobuf:protobuf-java'
  23. compile 'com.hazelcast:hazelcast-client'
  24. compile 'io.jsonwebtoken:jjwt'
  25. compile 'javax.xml.bind:jaxb-api'
  26. compile 'org.apache.commons:commons-email'
  27. compile 'org.apache.httpcomponents:httpclient'
  28. compile 'org.apache.logging.log4j:log4j-api'
  29. compile 'org.apache.tomcat.embed:tomcat-embed-core'
  30. compile 'org.elasticsearch.client:transport'
  31. compile 'org.picocontainer:picocontainer'
  32. compile 'org.slf4j:jul-to-slf4j'
  33. compile 'org.slf4j:slf4j-api'
  34. compile 'org.sonarsource.update-center:sonar-update-center-common'
  35. compile project(':server:sonar-db-dao')
  36. compile project(':server:sonar-db-migration')
  37. compile project(':server:sonar-plugin-bridge')
  38. compile project(':server:sonar-process')
  39. compile project(':sonar-core')
  40. compile project(':sonar-scanner-protocol')
  41. compile(project(':sonar-markdown')) {
  42. // already shaded with sonar-plugin-api
  43. exclude group: 'org.codehaus.sonar', module: 'sonar-channel'
  44. }
  45. compile project(path: ':sonar-plugin-api', configuration: 'shadow')
  46. compile project(':sonar-ws')
  47. compileOnly 'com.google.code.findbugs:jsr305'
  48. // not a transitive dep. At runtime lib/jdbc/h2 is used
  49. compileOnly 'com.h2database:h2'
  50. testCompile 'com.github.kevinsawicki:http-request'
  51. testCompile 'com.github.tlrx:elasticsearch-test'
  52. testCompile 'com.google.code.findbugs:jsr305'
  53. testCompile 'com.h2database:h2'
  54. testCompile 'com.squareup.okhttp3:mockwebserver'
  55. testCompile 'com.tngtech.java:junit-dataprovider'
  56. testCompile 'junit:junit'
  57. testCompile 'org.apache.logging.log4j:log4j-api'
  58. testCompile 'org.apache.logging.log4j:log4j-core'
  59. testCompile 'org.assertj:assertj-core'
  60. testCompile 'org.assertj:assertj-guava'
  61. testCompile("org.elasticsearch.test:framework:${elasticsearchVersion}") {
  62. // should be excluded to avoid ES go into "test mode" and require to run EsTester-based UTs with RandomizedRunner
  63. exclude group: 'com.carrotsearch.randomizedtesting', module: 'randomizedtesting-runner'
  64. exclude group: 'org.elasticsearch', module: 'securemock'
  65. }
  66. testCompile 'org.hamcrest:hamcrest-all'
  67. testCompile 'org.mockito:mockito-core'
  68. testCompile 'org.reflections:reflections'
  69. testCompile 'org.subethamail:subethasmtp'
  70. testCompile project(':server:sonar-db-testing')
  71. }
  72. task testJar(type: Jar) {
  73. classifier = 'tests'
  74. from sourceSets.test.output
  75. }
  76. artifactoryPublish.skip = false
  77. // Used by core plugins
  78. publishing {
  79. publications {
  80. mavenJava(MavenPublication) {
  81. from components.java
  82. artifact testJar
  83. artifact sourcesJar
  84. artifact javadocJar
  85. }
  86. }
  87. }