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') }