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

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Lucas Saldanha 6 years ago committed by GitHub
parent 76a50ee180
commit bc653d8467
  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