// Ordered alphabeticly
id 'com.github.ben-manes.versions' version '0.33.0'
id 'com.github.hierynomus.license' version '0.15.0'
+ id "com.github.hierynomus.license-report" version"0.15.0" apply false
id 'com.github.johnrengelman.shadow' version '5.2.0' apply false
id 'com.google.protobuf' version '0.8.13' apply false
id 'com.jfrog.artifactory' version '4.21.0'
import org.apache.tools.ant.filters.ReplaceTokens
-apply plugin: 'com.github.johnrengelman.shadow'
+plugins {
+ id "com.github.hierynomus.license-report"
+ id "com.github.johnrengelman.shadow"
+}
sonarqube {
properties {
bundledPlugin {
transitive = false
}
+
+ appLicenses.extendsFrom(compile, web, scanner, jsw, jdbc_mssql, jdbc_postgresql, jdbc_h2)
}
jar.enabled = false
// declare dependencies in configuration bundledPlugin to be packaged in lib/extensions
apply from: 'bundled_plugins.gradle'
-task zip(type: Zip, dependsOn: [configurations.compile]) {
+downloadLicenses {
+ dependencyConfiguration = 'appLicenses'
+}
+
+task zip(type: Zip, dependsOn: [configurations.compile, tasks.downloadLicenses]) {
duplicatesStrategy DuplicatesStrategy.EXCLUDE
def archiveDir = "sonarqube-$version"
into("${archiveDir}/") {
+ from(tasks.downloadLicenses.outputs) {
+ include 'dependency-license.json'
+ }
from file('src/main/assembly')
exclude 'conf/sonar.properties'
exclude 'conf/wrapper.conf'