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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 'commons-dbcp:commons-dbcp'
  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.h2database:h2'
  24. testCompile 'com.microsoft.sqlserver:mssql-jdbc'
  25. testCompile 'com.oracle.jdbc:ojdbc8'
  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. }
  35. task createDB(type:JavaExec) {
  36. main = 'org.sonar.db.CreateDb'
  37. classpath = sourceSets.test.runtimeClasspath
  38. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  39. systemProperty 'sonar.runtimeVersion', version
  40. systemProperty 'orchestrator.artifactory.apiKey', System.getProperty('orchestrator.artifactory.apiKey')
  41. systemProperty 'orchestrator.artifactory.repositories', System.getProperty('orchestrator.artifactory.repositories')
  42. }
  43. test {
  44. if (System.hasProperty('orchestrator.configUrl'))
  45. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  46. }
  47. task testJar(type: Jar) {
  48. classifier = 'tests'
  49. from sourceSets.test.output
  50. }
  51. artifactoryPublish.skip = false
  52. // Used by core plugins
  53. publishing {
  54. publications {
  55. mavenJava(MavenPublication) {
  56. from components.java
  57. artifact testJar
  58. artifact sourcesJar
  59. artifact javadocJar
  60. }
  61. }
  62. }