From 6bf05b9009bb068e0d52e62abf89daf55fa32930 Mon Sep 17 00:00:00 2001 From: Lucas Saldanha Date: Wed, 10 Oct 2018 21:43:54 +1300 Subject: [PATCH] NC-1498: Add license report to distribution packages (#17) --- build.gradle | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a5613aa4f9..55cd151fbb 100644 --- a/build.gradle +++ b/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') }