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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. sonar {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: DAO"
  4. }
  5. }
  6. dependencies {
  7. // please keep the list grouped by configuration and ordered by name
  8. api 'com.google.guava:guava'
  9. api 'com.google.protobuf:protobuf-java'
  10. api 'commons-io:commons-io'
  11. api 'commons-lang:commons-lang'
  12. api 'net.jpountz.lz4:lz4'
  13. api 'org.mybatis:mybatis'
  14. api 'org.sonarsource.api.plugin:sonar-plugin-api'
  15. api project(':server:sonar-db-core')
  16. api project(':server:sonar-db-migration')
  17. api project(':sonar-core')
  18. compileOnlyApi 'com.google.code.findbugs:jsr305'
  19. testImplementation 'com.tngtech.java:junit-dataprovider'
  20. testImplementation 'commons-dbutils:commons-dbutils'
  21. testImplementation 'junit:junit'
  22. testImplementation 'org.assertj:assertj-core'
  23. testImplementation 'org.assertj:assertj-guava'
  24. testImplementation 'org.mockito:mockito-core'
  25. testImplementation 'org.sonarsource.orchestrator:sonar-orchestrator-junit4'
  26. testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  27. testImplementation project(':sonar-testing-harness')
  28. testImplementation project(':sonar-plugin-api-impl')
  29. testCompileOnly 'com.google.code.findbugs:jsr305'
  30. testRuntimeOnly 'com.h2database:h2'
  31. testRuntimeOnly 'com.microsoft.sqlserver:mssql-jdbc'
  32. testRuntimeOnly 'com.oracle.database.jdbc:ojdbc11'
  33. testRuntimeOnly 'org.postgresql:postgresql'
  34. testFixturesApi testFixtures(project(':server:sonar-db-core'))
  35. testFixturesImplementation 'com.h2database:h2'
  36. testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
  37. }
  38. test {
  39. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  40. }
  41. task dumpSchema(type:JavaExec) {
  42. mainClass = 'org.sonar.db.dump.DumpSQSchema'
  43. classpath = sourceSets.test.runtimeClasspath
  44. }
  45. tasks.check.dependsOn dumpSchema
  46. task createDB(type:JavaExec) {
  47. mainClass = 'org.sonar.db.createdb.CreateDb'
  48. classpath = sourceSets.test.runtimeClasspath
  49. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  50. if (!project.version.endsWith("-SNAPSHOT")) {
  51. systemProperty 'sonar.runtimeVersion', project.version
  52. }
  53. }
  54. task testJar(type: Jar) {
  55. archiveClassifier = 'tests'
  56. from sourceSets.test.output
  57. }
  58. configurations {
  59. tests
  60. }
  61. artifacts {
  62. tests testJar
  63. }
  64. jar {
  65. // remove exclusion on proto files so that they can be included by other modules
  66. setExcludes([])
  67. }