NC-1498: Add license report to distribution packages (#17)

Lucas Saldanha 6 years ago committed by GitHub
parent 003fd4b6a0
commit 6bf05b9009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      build.gradle

@ -342,9 +342,19 @@ applicationDistribution.into("bin") {
fileMode = 0755
}
applicationDistribution.into("") { from("LICENSE") }
distributions {
main {
contents {
from("./LICENSE") { into "." }
from("build/reports/license/license-dependency.html") { into "." }
}
}
}
installDist { dependsOn checkLicenses }
distTar {
dependsOn checkLicenses
doFirst {
delete fileTree(dir: 'build/distributions', include: '*.tar.gz')
}
@ -353,6 +363,7 @@ distTar {
}
distZip {
dependsOn checkLicenses
doFirst {
delete fileTree(dir: 'build/distributions', include: '*.zip')
}

Loading…
Cancel
Save