Skip to content

Commit 76a71e5

Browse files
authored
Merge pull request MegaMek#7178 from rjhancock/adjust-build-scripts-to-copy-and-sync-license
Fix: Adjusted to sync then copy the license files.
2 parents 56fdcd5 + cf48565 commit 76a71e5

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

MekHQ/build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ tasks.register('connectorSystemZip', Zip) {
178178
outputs.dir "${fileStagingDir}/${data}/universe/planetary_systems"
179179
}
180180

181-
tasks.register("copyLicenseFiles", Sync) {
182-
description = "Copy the license files to the root of the folder."
181+
tasks.register("stageLicenseFiles", Sync) {
182+
description = "Copy the license files to the build folder."
183183
group = 'build'
184184
from "../"
185-
into fileStagingDir
185+
into "${layout.buildDirectory.get()}/licenses"
186186

187187
includes = [
188188
'LICENSE',
@@ -193,6 +193,16 @@ tasks.register("copyLicenseFiles", Sync) {
193193

194194
}
195195

196+
tasks.register("copyLicenseFiles", Copy) {
197+
description "Copies from the build folder to the staging folder"
198+
group = 'build'
199+
200+
dependsOn stageLicenseFiles
201+
202+
from "${layout.buildDirectory.get()}/licenses"
203+
into fileStagingDir
204+
}
205+
196206
tasks.register('stageFiles', Copy) {
197207
description = 'Stages files that are to be copied into the distribution.'
198208

0 commit comments

Comments
 (0)