blob: cb31750171459adb167b5422909bb18b53d644a7 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
sonarqube {
properties {
property 'sonar.projectName', "${projectTitle} :: DAO"
}
}
dependencies {
// please keep the list grouped by configuration and ordered by name
compile 'com.google.guava:guava'
compile 'com.google.protobuf:protobuf-java'
compile 'commons-io:commons-io'
compile 'commons-lang:commons-lang'
compile 'net.jpountz.lz4:lz4'
compile 'org.mybatis:mybatis'
compile project(path: ':sonar-plugin-api', configuration: 'shadow')
compile project(':server:sonar-db-core')
compile project(':server:sonar-db-migration')
compile project(':sonar-core')
compileOnly 'com.google.code.findbugs:jsr305'
testCompile 'com.tngtech.java:junit-dataprovider'
testCompile 'commons-dbutils:commons-dbutils'
testCompile 'junit:junit'
testCompile 'org.assertj:assertj-core'
testCompile 'org.assertj:assertj-guava'
testCompile 'org.mockito:mockito-core'
testCompile 'org.sonarsource.orchestrator:sonar-orchestrator'
testCompile project(':sonar-testing-harness')
testCompile project(':sonar-plugin-api-impl')
testCompileOnly 'com.google.code.findbugs:jsr305'
testRuntime 'com.h2database:h2'
testRuntime 'com.microsoft.sqlserver:mssql-jdbc'
testRuntime 'com.oracle.database.jdbc:ojdbc8'
testRuntime 'org.postgresql:postgresql'
testFixturesApi testFixtures(project(':server:sonar-db-core'))
testFixturesImplementation 'com.h2database:h2'
testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
}
test {
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
}
task dumpSchema(type:JavaExec) {
mainClass = 'org.sonar.db.dump.DumpSQSchema'
classpath = sourceSets.test.runtimeClasspath
}
tasks.check.dependsOn dumpSchema
task createDB(type:JavaExec) {
mainClass = 'org.sonar.db.createdb.CreateDb'
classpath = sourceSets.test.runtimeClasspath
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
if (!project.version.endsWith("-SNAPSHOT")) {
systemProperty 'sonar.runtimeVersion', project.version
}
}
task testJar(type: Jar) {
archiveClassifier = 'tests'
from sourceSets.test.output
}
configurations {
tests
}
artifacts {
tests testJar
}
jar {
// remove exclusion on proto files so that they can be included by other modules
setExcludes([])
}
|