aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/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 /sonar-core/build.gradle
parent21fbe3697bdb6e66016ef8d0bea49da574e02e7d (diff)
downloadsonarqube-1a17e4302e4b63de6b4ce7c049441803b9471524.tar.gz
sonarqube-1a17e4302e4b63de6b4ce7c049441803b9471524.zip
Move To Gradle
Diffstat (limited to 'sonar-core/build.gradle')
-rw-r--r--sonar-core/build.gradle53
1 files changed, 53 insertions, 0 deletions
diff --git a/sonar-core/build.gradle b/sonar-core/build.gradle
new file mode 100644
index 00000000000..e9cd948163e
--- /dev/null
+++ b/sonar-core/build.gradle
@@ -0,0 +1,53 @@
+sonarqube {
+ properties {
+ property 'sonar.projectName', "${projectTitle} :: Core"
+ }
+}
+
+configurations {
+ includeInResources
+}
+
+dependencies {
+ compileOnly 'com.google.code.findbugs:jsr305'
+ compile 'commons-codec:commons-codec'
+ compile 'org.apache.commons:commons-csv'
+ compile 'org.picocontainer:picocontainer'
+ compile 'com.google.protobuf:protobuf-java'
+ compile 'org.codehaus.sonar:sonar-classloader'
+ compile project(path: ':sonar-plugin-api', configuration: 'shadow')
+ compile 'org.sonarsource.update-center:sonar-update-center-common'
+ compile 'org.slf4j:slf4j-api'
+ compile 'ch.qos.logback:logback-classic'
+ compile 'ch.qos.logback:logback-core'
+
+ includeInResources project(path: ':sonar-plugin-api-deps', configuration: 'shadow')
+
+ testCompile 'junit:junit'
+ testCompile 'org.assertj:assertj-core'
+ testCompile 'com.tngtech.java:junit-dataprovider'
+ testCompile 'org.mockito:mockito-core'
+ testCompile project(':sonar-testing-harness')
+ testCompile 'org.simpleframework:simple'
+ testCompileOnly 'com.google.code.findbugs:jsr305'
+}
+
+// sonar-plugin-api.jar is copied into target JAR file
+processResources {
+ into('/') {
+ from configurations.includeInResources
+ rename '(.*)-' + project.version + '-all.jar', '$1.jar'
+ }
+}
+
+// Used by sonar-db-core to run DB Unit Tests
+artifactoryPublish.skip = false
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ artifact sourcesJar
+ artifact javadocJar
+ }
+ }
+}