2019-11-02 17:23:48 +01:00
|
|
|
dependencies {
|
2021-05-16 18:13:30 +02:00
|
|
|
api 'com.github.ben-manes.caffeine:caffeine:2.8.5'
|
|
|
|
api 'com.google.code.gson:gson:2.8.0'
|
|
|
|
api 'org.apache.commons:commons-lang3:3.6'
|
|
|
|
api group: 'commons-io', name: 'commons-io', version: '2.5'
|
|
|
|
api 'com.flowpowered:flow-math:1.0.3'
|
|
|
|
api 'org.spongepowered:configurate-hocon:4.1.1'
|
|
|
|
api 'org.spongepowered:configurate-gson:4.1.1'
|
|
|
|
api 'com.github.Querz:NBT:4.0'
|
2020-01-14 02:22:15 +01:00
|
|
|
|
2021-05-16 18:13:30 +02:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
|
2021-04-24 22:11:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2020-01-14 02:22:15 +01:00
|
|
|
}
|
|
|
|
|
2020-03-30 01:45:32 +02:00
|
|
|
processResources {
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
2020-08-25 01:59:03 +02:00
|
|
|
include 'de/bluecolored/bluemap/version.json'
|
2021-05-16 18:13:30 +02:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.WARN
|
2020-03-30 01:45:32 +02:00
|
|
|
|
|
|
|
expand (
|
|
|
|
version: project.version
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-03 17:51:07 +02:00
|
|
|
license {
|
|
|
|
exclude('**/AABB.java')
|
|
|
|
}
|
|
|
|
|
2020-08-25 11:59:17 +02:00
|
|
|
//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')
|
2019-12-29 16:23:43 +01:00
|
|
|
archiveName 'resourceExtensions.zip'
|
2020-08-25 11:59:17 +02:00
|
|
|
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/'))
|
2019-12-29 16:23:43 +01:00
|
|
|
outputs.upToDateWhen { false }
|
|
|
|
}
|
|
|
|
|
2019-11-02 17:23:48 +01:00
|
|
|
//always update the zip before build
|
2020-01-14 02:22:15 +01:00
|
|
|
processResources.dependsOn(zipResourceExtensions)
|