Also adapt resourceExtensions gradle tasks

This commit is contained in:
Blue (Lukas Rieger) 2020-08-25 11:59:17 +02:00
parent a2b670c381
commit 28d56e7374
2 changed files with 33 additions and 4 deletions

2
.gitignore vendored
View File

@ -32,7 +32,7 @@ package-lock.json
# exclude generated resource
BlueMapCore/src/main/resources/de/bluecolored/bluemap/webroot.zip
BlueMapCore/src/main/resources/de/bluecolored/bluemap/resourceExtensions.zip
BlueMapCore/src/main/resources/de/bluecolored/bluemap/*/resourceExtensions.zip
#exclude-test-data
data/test-render

View File

@ -67,10 +67,39 @@ task buildWebroot {
dependsOn 'zipWebroot'
}
task zipResourceExtensions(type: Zip) {
from fileTree('src/main/resourceExtensions')
//resource Extensions
task zipResourceExtensions {
dependsOn 'zipResourceExtensions1_12'
dependsOn 'zipResourceExtensions1_13'
dependsOn 'zipResourceExtensions1_15'
dependsOn 'zipResourceExtensions1_16'
}
task zipResourceExtensions1_12(type: Zip) {
from fileTree('src/main/resourceExtensions/mc1_12')
archiveName 'resourceExtensions.zip'
destinationDir(file('src/main/resources/de/bluecolored/bluemap/'))
destinationDir(file('src/main/resources/de/bluecolored/bluemap/mc1_12/'))
outputs.upToDateWhen { false }
}
task zipResourceExtensions1_13(type: Zip) {
from fileTree('src/main/resourceExtensions/mc1_13')
archiveName 'resourceExtensions.zip'
destinationDir(file('src/main/resources/de/bluecolored/bluemap/mc1_13/'))
outputs.upToDateWhen { false }
}
task zipResourceExtensions1_15(type: Zip) {
from fileTree('src/main/resourceExtensions/mc1_15')
archiveName 'resourceExtensions.zip'
destinationDir(file('src/main/resources/de/bluecolored/bluemap/mc1_15/'))
outputs.upToDateWhen { false }
}
task zipResourceExtensions1_16(type: Zip) {
from fileTree('src/main/resourceExtensions/mc1_16')
archiveName 'resourceExtensions.zip'
destinationDir(file('src/main/resources/de/bluecolored/bluemap/mc1_16/'))
outputs.upToDateWhen { false }
}