aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration/build.gradle
blob: 9b5a4032e13b2a9ac99281f63ca0aa53c3395775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
sonar {
  properties {
    property 'sonar.projectName', "${projectTitle} :: Database Migration"
  }
}

dependencies {
  // please keep the list grouped by configuration and ordered by name

  api 'com.google.guava:guava'
  api 'org.apache.commons:commons-lang3'
  api 'commons-codec:commons-codec'
  api 'com.fasterxml.staxmate:staxmate'

  api project(':server:sonar-db-core')
  api project(':server:sonar-process')
  api project(':sonar-core')

  implementation project(':server:sonar-telemetry-core')

  compileOnlyApi 'com.github.spotbugs:spotbugs-annotations'

  testImplementation 'com.github.spotbugs:spotbugs-annotations'
  testImplementation 'com.tngtech.java:junit-dataprovider'
  testImplementation 'commons-dbutils:commons-dbutils'
  testImplementation 'com.squareup.okhttp3:mockwebserver'
  testImplementation 'junit:junit'
  testImplementation 'org.assertj:assertj-core'
  testImplementation 'org.junit.jupiter:junit-jupiter-api'
  testImplementation 'org.junit.jupiter:junit-jupiter-params'
  testImplementation 'org.mindrot:jbcrypt'
  testImplementation 'org.mockito:mockito-core'
  testImplementation 'org.xmlunit:xmlunit-core'
  testImplementation 'org.xmlunit:xmlunit-matchers'
  testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  testImplementation project(':sonar-scanner-protocol')
  testImplementation project(':sonar-testing-harness')
  testImplementation testFixtures(project(':server:sonar-db-core'))

  testFixturesImplementation 'org.sonarsource.orchestrator:sonar-orchestrator-junit4'
  testFixturesImplementation 'org.junit.jupiter:junit-jupiter-api'
  testFixturesImplementation testFixtures(project(':server:sonar-db-core'))

  testRuntimeOnly 'com.h2database:h2'
  testRuntimeOnly 'com.microsoft.sqlserver:mssql-jdbc'
  testRuntimeOnly 'com.oracle.database.jdbc:ojdbc11'
  testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
  testRuntimeOnly 'org.postgresql:postgresql'
}

test {
  systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
  // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
  useJUnitPlatform()
}