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. 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'
  26. testImplementation project(':sonar-testing-harness')
  27. testImplementation project(':sonar-plugin-api-impl')
  28. testCompileOnly 'com.google.code.findbugs:jsr305'
  29. testRuntimeOnly 'com.h2database:h2'
  30. testRuntimeOnly 'com.microsoft.sqlserver:mssql-jdbc'
  31. testRuntimeOnly 'com.oracle.database.jdbc:ojdbc8'
  32. testRuntimeOnly 'org.postgresql:postgresql'
  33. testFixturesApi testFixtures(project(':server:sonar-db-core'))
  34. testFixturesImplementation 'com.h2database:h2'
  35. testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
  36. }
  37. test {
  38. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  39. }
  40. task dumpSchema(type:JavaExec) {
  41. mainClass = 'org.sonar.db.dump.DumpSQSchema'
  42. classpath = sourceSets.test.runtimeClasspath
  43. }
  44. tasks.check.dependsOn dumpSchema
  45. task createDB(type:JavaExec) {
  46. mainClass = 'org.sonar.db.createdb.CreateDb'
  47. classpath = sourceSets.test.runtimeClasspath
  48. systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  49. if (!project.version.endsWith("-SNAPSHOT")) {
  50. systemProperty 'sonar.runtimeVersion', project.version
  51. }
  52. }
  53. task testJar(type: Jar) {
  54. archiveClassifier = 'tests'
  55. from sourceSets.test.output
  56. }
  57. configurations {
  58. tests
  59. }
  60. artifacts {
  61. tests testJar
  62. }
  63. jar {
  64. // remove exclusion on proto files so that they can be included by other modules
  65. setExcludes([])
  66. }