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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. compile project(':sonar-plugin-api-impl')
  22. compileOnly 'com.google.code.findbugs:jsr305'
  23. testCompile 'com.google.code.findbugs:jsr305'
  24. testCompile 'com.microsoft.sqlserver:mssql-jdbc'
  25. testCompile 'com.oracle.jdbc:ojdbc8'
  26. testCompile 'com.tngtech.java:junit-dataprovider'
  27. testCompile 'junit:junit'
  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 '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. if (!project.version.endsWith("-SNAPSHOT")) {
  44. systemProperty 'sonar.runtimeVersion', project.version
  45. }
  46. }
  47. test {
  48. if (System.hasProperty('orchestrator.configUrl'))
  49. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  50. }
  51. task testJar(type: Jar) {
  52. classifier = 'tests'
  53. from sourceSets.test.output
  54. }
  55. configurations {
  56. tests
  57. }
  58. artifacts {
  59. tests testJar
  60. }
  61. artifactoryPublish.skip = false
  62. // Used by core plugins
  63. publishing {
  64. publications {
  65. mavenJava(MavenPublication) {
  66. from components.java
  67. if (release) {
  68. artifact sourcesJar
  69. artifact javadocJar
  70. artifact testJar
  71. }
  72. }
  73. }
  74. }