aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/build.gradle
diff options
context:
space:
mode:
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
+ }
+ }
+}