2018-02-08 15:01:19 +01:00
|
|
|
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'
|
2018-08-29 15:56:42 +02:00
|
|
|
compile 'org.apache.commons:commons-dbcp2'
|
2018-02-08 15:01:19 +01:00
|
|
|
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.microsoft.sqlserver:mssql-jdbc'
|
|
|
|
testCompile 'com.oracle.jdbc:ojdbc8'
|
2018-12-04 13:52:42 +01:00
|
|
|
testCompile 'com.tngtech.java:junit-dataprovider'
|
2018-02-08 15:01:19 +01:00
|
|
|
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')
|
2018-03-18 22:13:43 +01:00
|
|
|
|
|
|
|
testRuntime 'com.h2database:h2'
|
|
|
|
testRuntime 'com.microsoft.sqlserver:mssql-jdbc'
|
|
|
|
testRuntime 'com.oracle.jdbc:ojdbc8'
|
|
|
|
testRuntime 'mysql:mysql-connector-java'
|
|
|
|
testRuntime 'org.postgresql:postgresql'
|
2018-02-08 15:01:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
task createDB(type:JavaExec) {
|
|
|
|
main = 'org.sonar.db.CreateDb'
|
|
|
|
classpath = sourceSets.test.runtimeClasspath
|
|
|
|
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
|
2018-11-16 11:25:45 +01:00
|
|
|
if (!project.version.endsWith("-SNAPSHOT")) {
|
|
|
|
systemProperty 'sonar.runtimeVersion', project.version
|
|
|
|
}
|
2018-02-08 15:01:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
if (System.hasProperty('orchestrator.configUrl'))
|
|
|
|
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
|
|
|
|
}
|
|
|
|
|
|
|
|
task testJar(type: Jar) {
|
|
|
|
classifier = 'tests'
|
|
|
|
from sourceSets.test.output
|
|
|
|
}
|
|
|
|
|
2018-03-18 22:13:43 +01:00
|
|
|
configurations {
|
|
|
|
tests
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
tests testJar
|
|
|
|
}
|
|
|
|
|
2018-02-08 15:01:19 +01:00
|
|
|
artifactoryPublish.skip = false
|
|
|
|
|
|
|
|
// Used by core plugins
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
from components.java
|
2018-03-28 12:37:09 +02:00
|
|
|
if (release) {
|
|
|
|
artifact sourcesJar
|
|
|
|
artifact javadocJar
|
|
|
|
artifact testJar
|
|
|
|
}
|
2018-02-08 15:01:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|