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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 'com.google.guava:guava'
  11. compile 'commons-dbutils:commons-dbutils'
  12. compile 'commons-io:commons-io'
  13. compile 'commons-lang:commons-lang'
  14. compile 'org.apache.commons:commons-dbcp2'
  15. compile 'org.mybatis:mybatis'
  16. compile 'org.picocontainer:picocontainer'
  17. compile 'org.slf4j:slf4j-api'
  18. compile project(':server:sonar-process')
  19. compile project(path: ':sonar-plugin-api', configuration: 'shadow')
  20. compile project(':sonar-plugin-api-impl')
  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 '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 'org.postgresql:postgresql'
  37. }
  38. task createDB(type:JavaExec) {
  39. main = 'org.sonar.db.CreateDb'
  40. classpath = sourceSets.test.runtimeClasspath
  41. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  42. if (!project.version.endsWith("-SNAPSHOT")) {
  43. systemProperty 'sonar.runtimeVersion', project.version
  44. }
  45. }
  46. test {
  47. if (System.hasProperty('orchestrator.configUrl'))
  48. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  49. }
  50. task testJar(type: Jar) {
  51. classifier = 'tests'
  52. from sourceSets.test.output
  53. }
  54. configurations { tests { extendsFrom testRuntime } }
  55. artifacts {
  56. tests testJar
  57. }
  58. artifactoryPublish.skip = false
  59. // Used by core plugins
  60. publishing {
  61. publications {
  62. mavenJava(MavenPublication) {
  63. from components.java
  64. if (release) {
  65. artifact sourcesJar
  66. artifact javadocJar
  67. artifact testJar
  68. }
  69. }
  70. }
  71. }