mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 12:05:13 +01:00
Also adapt resourceExtensions gradle tasks
This commit is contained in:
parent
a2b670c381
commit
28d56e7374
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
|
||||
|
@ -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 }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user