aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common/build.gradle
blob: d019caad292ee81c15564ff05b508eac2dc811de (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
57
58
59
60
61
62
63
64
65
66
67
68
description = 'Code shared between the Web Server and the Compute Engine'

sonar {
  properties {
    property 'sonar.projectName', "${projectTitle} :: Server :: Common"
  }
}

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

  api 'commons-io:commons-io'
  api 'com.google.guava:guava'
  api 'com.squareup.okhttp3:okhttp'
  api 'org.apache.commons:commons-email'
  api 'org.apache.commons:commons-lang3'
  api 'org.bouncycastle:bcprov-jdk18on'
  api 'org.elasticsearch.client:elasticsearch-rest-high-level-client'
  api 'org.slf4j:slf4j-api'
  api 'org.sonarsource.api.plugin:sonar-plugin-api'
  api project(':server:sonar-db-dao')
  api project(':server:sonar-db-migration')
  api project(':server:sonar-process')
  api project(':sonar-core')
  api project(':sonar-markdown')
  api project(':sonar-ws')

  compileOnlyApi 'com.google.code.findbugs:jsr305'
  testImplementation 'org.elasticsearch.plugin:transport-netty4-client'
  testImplementation 'ch.qos.logback:logback-core'
  testImplementation 'com.google.code.findbugs:jsr305'
  testImplementation 'org.subethamail:subethasmtp'
  testImplementation 'com.squareup.okhttp3:mockwebserver'
  testImplementation 'com.squareup.okhttp3:okhttp-tls'
  testImplementation 'com.squareup.okio:okio'
  testImplementation 'com.tngtech.java:junit-dataprovider'
  testImplementation 'junit:junit'
  testImplementation 'org.apache.logging.log4j:log4j-api'
  testImplementation 'org.apache.logging.log4j:log4j-core'
  testImplementation 'org.assertj:assertj-core'
  testImplementation 'org.hamcrest:hamcrest-core'
  testImplementation 'org.junit.jupiter:junit-jupiter-api'
  testImplementation 'org.mockito:mockito-core'
  testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  testImplementation testFixtures(project(':server:sonar-db-dao'))
  testImplementation testFixtures(project(':server:sonar-webserver-auth'))
  testImplementation testFixtures(project(':server:sonar-webserver-es'))
  testImplementation project(':sonar-plugin-api-impl')
  testImplementation project(':sonar-testing-harness')

  testFixturesApi 'junit:junit'
  testFixturesApi testFixtures(project(':server:sonar-db-dao'))

  testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
  testFixturesImplementation 'org.elasticsearch.plugin:transport-netty4-client'
  testFixturesImplementation 'org.codelibs.elasticsearch.module:analysis-common'
  testFixturesImplementation 'org.codelibs.elasticsearch.module:reindex'
  testFixturesImplementation 'org.elasticsearch:mocksocket'
  testFixturesImplementation 'org.junit.jupiter:junit-jupiter-api'

  testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}

test {
  // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
  useJUnitPlatform()
}