aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/build.gradle
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-02-08 15:01:19 +0100
committerDavid Rautureau <david.rautureau@sonarsource.com>2018-03-09 11:33:38 +0100
commit1a17e4302e4b63de6b4ce7c049441803b9471524 (patch)
tree031bcfbf302c7909c5b45a7c31f1bbc00a2fce34 /server/sonar-db-dao/build.gradle
parent21fbe3697bdb6e66016ef8d0bea49da574e02e7d (diff)
downloadsonarqube-1a17e4302e4b63de6b4ce7c049441803b9471524.tar.gz
sonarqube-1a17e4302e4b63de6b4ce7c049441803b9471524.zip
Move To Gradle
Diffstat (limited to 'server/sonar-db-dao/build.gradle')
-rw-r--r--server/sonar-db-dao/build.gradle51
1 files changed, 51 insertions, 0 deletions
diff --git a/server/sonar-db-dao/build.gradle b/server/sonar-db-dao/build.gradle
new file mode 100644
index 00000000000..24a45f382e1
--- /dev/null
+++ b/server/sonar-db-dao/build.gradle
@@ -0,0 +1,51 @@
+sonarqube {
+ properties {
+ property 'sonar.projectName', "${projectTitle} :: DAO"
+ }
+}
+
+dependencies {
+ // please keep the list grouped by configuration and ordered by name
+
+ compile project(':server:sonar-db-core')
+ compile project(':server:sonar-db-migration')
+ compile project(':sonar-core')
+
+ compileOnly 'com.google.code.findbugs:jsr305'
+
+ testCompile 'com.h2database:h2'
+ testCompile 'com.tngtech.java:junit-dataprovider'
+ testCompile 'junit:junit'
+ testCompile 'org.assertj:assertj-core'
+ testCompile 'org.assertj:assertj-guava'
+ testCompile 'org.dbunit:dbunit'
+ testCompile 'org.mockito:mockito-core'
+ testCompile project(':sonar-testing-harness')
+ testCompile project(':server:sonar-db-core').sourceSets.test.output
+
+ testCompileOnly 'com.google.code.findbugs:jsr305'
+}
+
+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
+ }
+ }
+}