blob: bfb6921b78b53e008237e19cd1f4ef2c108eb847 (
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
|
sonarqube {
properties {
property 'sonar.projectName', "${projectTitle} :: Database Core"
}
}
dependencies {
// please keep the list grouped by configuration and ordered by name
compile 'ch.qos.logback:logback-classic'
compile 'ch.qos.logback:logback-core'
compile 'commons-codec:commons-codec'
compile 'commons-dbcp:commons-dbcp'
compile 'commons-dbutils:commons-dbutils'
compile 'net.jpountz.lz4:lz4'
compile 'org.apache.commons:commons-csv'
compile 'org.mybatis:mybatis'
compile 'org.slf4j:slf4j-api'
compile project(':server:sonar-process')
compile project(':sonar-core')
compile project(':sonar-scanner-protocol')
compile project(path: ':sonar-plugin-api', configuration: 'shadow')
compileOnly 'com.google.code.findbugs:jsr305'
testCompile 'com.google.code.findbugs:jsr305'
testCompile 'com.h2database:h2'
testCompile 'com.microsoft.sqlserver:mssql-jdbc'
testCompile 'com.oracle.jdbc:ojdbc8'
testCompile 'junit:junit'
testCompile 'mysql:mysql-connector-java'
testCompile 'org.assertj:assertj-core'
testCompile 'org.dbunit:dbunit'
testCompile 'org.mockito:mockito-core'
testCompile 'org.postgresql:postgresql'
testCompile 'org.sonarsource.orchestrator:sonar-orchestrator'
testCompile project(':sonar-testing-harness')
}
task createDB(type:JavaExec) {
main = 'org.sonar.db.CreateDb'
classpath = sourceSets.test.runtimeClasspath
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
systemProperty 'sonar.runtimeVersion', version
systemProperty 'orchestrator.artifactory.apiKey', System.getProperty('orchestrator.artifactory.apiKey')
systemProperty 'orchestrator.artifactory.repositories', System.getProperty('orchestrator.artifactory.repositories')
}
test {
if (System.hasProperty('orchestrator.configUrl'))
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
}
task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
artifactoryPublish.skip = false
// Used by core plugins
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact testJar
artifact sourcesJar
artifact javadocJar
}
}
}
|