aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-scanner-protocol/build.gradle')
-rw-r--r--sonar-scanner-protocol/build.gradle12
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-scanner-protocol/build.gradle b/sonar-scanner-protocol/build.gradle
index 788ab75e8c4..87a8c87cac7 100644
--- a/sonar-scanner-protocol/build.gradle
+++ b/sonar-scanner-protocol/build.gradle
@@ -22,6 +22,18 @@ dependencies {
testCompile 'org.mockito:mockito-core'
}
+//create a single Jar with all dependencies
+task fatJar(type: Jar) {
+ manifest {
+ attributes 'Main-Class': 'org.sonar.scanner.protocol.viewer.ScannerReportViewerApp'
+ }
+ baseName = project.name + '-all'
+ from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+ with jar
+}
+
+build.dependsOn fatJar
+
// Used by sonar-db-core to run DB Unit Tests
artifactoryPublish.skip = false
publishing {