aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-db-core/build.gradle')
-rw-r--r--server/sonar-db-core/build.gradle17
1 files changed, 15 insertions, 2 deletions
diff --git a/server/sonar-db-core/build.gradle b/server/sonar-db-core/build.gradle
index bfb6921b78b..8a4ee3042d6 100644
--- a/server/sonar-db-core/build.gradle
+++ b/server/sonar-db-core/build.gradle
@@ -24,7 +24,6 @@ dependencies {
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'
@@ -35,13 +34,19 @@ dependencies {
testCompile 'org.postgresql:postgresql'
testCompile 'org.sonarsource.orchestrator:sonar-orchestrator'
testCompile project(':sonar-testing-harness')
+
+ testRuntime 'com.h2database:h2'
+ testRuntime 'com.microsoft.sqlserver:mssql-jdbc'
+ testRuntime 'com.oracle.jdbc:ojdbc8'
+ testRuntime 'mysql:mysql-connector-java'
+ testRuntime 'org.postgresql:postgresql'
}
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 'sonar.runtimeVersion', System.getProperty('sonar.runtimeVersion')
systemProperty 'orchestrator.artifactory.apiKey', System.getProperty('orchestrator.artifactory.apiKey')
systemProperty 'orchestrator.artifactory.repositories', System.getProperty('orchestrator.artifactory.repositories')
}
@@ -56,6 +61,14 @@ task testJar(type: Jar) {
from sourceSets.test.output
}
+configurations {
+ tests
+}
+
+artifacts {
+ tests testJar
+}
+
artifactoryPublish.skip = false
// Used by core plugins