diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-05-01 15:29:47 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-09 20:20:46 +0200 |
commit | 72a0fe6977f60c81b894ad7bb8dd3f0374e9285f (patch) | |
tree | 6432b84241d42f6452675a07d3c3bbcf14b9dd4e /sonar-scanner-protocol/build.gradle | |
parent | 9f372f97c4e7419d84322f1c23c9a3e1df0d5967 (diff) | |
download | sonarqube-72a0fe6977f60c81b894ad7bb8dd3f0374e9285f.tar.gz sonarqube-72a0fe6977f60c81b894ad7bb8dd3f0374e9285f.zip |
Build executable scanner report viewer
Diffstat (limited to 'sonar-scanner-protocol/build.gradle')
-rw-r--r-- | sonar-scanner-protocol/build.gradle | 12 |
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 { |