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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 'com.tngtech.java:junit-dataprovider'
  26. testCompile 'junit:junit'
  27. testCompile 'mysql:mysql-connector-java'
  28. testCompile 'org.assertj:assertj-core'
  29. testCompile 'org.dbunit:dbunit'
  30. testCompile 'org.mockito:mockito-core'
  31. testCompile 'org.postgresql:postgresql'
  32. testCompile 'org.sonarsource.orchestrator:sonar-orchestrator'
  33. testCompile project(':sonar-testing-harness')
  34. testRuntime 'com.h2database:h2'
  35. testRuntime 'com.microsoft.sqlserver:mssql-jdbc'
  36. testRuntime 'com.oracle.jdbc:ojdbc8'
  37. testRuntime 'mysql:mysql-connector-java'
  38. testRuntime 'org.postgresql:postgresql'
  39. }
  40. task createDB(type:JavaExec) {
  41. main = 'org.sonar.db.CreateDb'
  42. classpath = sourceSets.test.runtimeClasspath
  43. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  44. if (!project.version.endsWith("-SNAPSHOT")) {
  45. systemProperty 'sonar.runtimeVersion', project.version
  46. }
  47. }
  48. test {
  49. if (System.hasProperty('orchestrator.configUrl'))
  50. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  51. }
  52. task testJar(type: Jar) {
  53. classifier = 'tests'
  54. from sourceSets.test.output
  55. }
  56. configurations {
  57. tests
  58. }
  59. artifacts {
  60. tests testJar
  61. }
  62. artifactoryPublish.skip = false
  63. // Used by core plugins
  64. publishing {
  65. publications {
  66. mavenJava(MavenPublication) {
  67. from components.java
  68. if (release) {
  69. artifact sourcesJar
  70. artifact javadocJar
  71. artifact testJar
  72. }
  73. }
  74. }
  75. }