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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. sonarqube {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Database Core"
  4. }
  5. }
  6. dependencies {
  7. // please keep the list grouped by configuration and ordered by name
  8. compile 'ch.qos.logback:logback-classic'
  9. compile 'ch.qos.logback:logback-core'
  10. compile 'commons-codec:commons-codec'
  11. compile 'org.apache.commons:commons-dbcp2'
  12. compile 'commons-dbutils:commons-dbutils'
  13. compile 'net.jpountz.lz4:lz4'
  14. compile 'org.apache.commons:commons-csv'
  15. compile 'org.mybatis:mybatis'
  16. compile 'org.slf4j:slf4j-api'
  17. compile project(':server:sonar-process')
  18. compile project(':sonar-core')
  19. compile project(':sonar-scanner-protocol')
  20. compile project(path: ':sonar-plugin-api', configuration: 'shadow')
  21. compileOnly 'com.google.code.findbugs:jsr305'
  22. testCompile 'com.google.code.findbugs:jsr305'
  23. testCompile 'com.microsoft.sqlserver:mssql-jdbc'
  24. testCompile 'com.oracle.jdbc:ojdbc8'
  25. testCompile 'junit:junit'
  26. testCompile 'mysql:mysql-connector-java'
  27. testCompile 'org.assertj:assertj-core'
  28. testCompile 'org.dbunit:dbunit'
  29. testCompile 'org.mockito:mockito-core'
  30. testCompile 'org.postgresql:postgresql'
  31. testCompile 'org.sonarsource.orchestrator:sonar-orchestrator'
  32. testCompile project(':sonar-testing-harness')
  33. testRuntime 'com.h2database:h2'
  34. testRuntime 'com.microsoft.sqlserver:mssql-jdbc'
  35. testRuntime 'com.oracle.jdbc:ojdbc8'
  36. testRuntime 'mysql:mysql-connector-java'
  37. testRuntime 'org.postgresql:postgresql'
  38. }
  39. task createDB(type:JavaExec) {
  40. main = 'org.sonar.db.CreateDb'
  41. classpath = sourceSets.test.runtimeClasspath
  42. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  43. systemProperty 'sonar.runtimeVersion', project.version
  44. }
  45. test {
  46. if (System.hasProperty('orchestrator.configUrl'))
  47. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  48. }
  49. task testJar(type: Jar) {
  50. classifier = 'tests'
  51. from sourceSets.test.output
  52. }
  53. configurations {
  54. tests
  55. }
  56. artifacts {
  57. tests testJar
  58. }
  59. artifactoryPublish.skip = false
  60. // Used by core plugins
  61. publishing {
  62. publications {
  63. mavenJava(MavenPublication) {
  64. from components.java
  65. if (release) {
  66. artifact sourcesJar
  67. artifact javadocJar
  68. artifact testJar
  69. }
  70. }
  71. }
  72. }