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'
|
2021-11-14 14:18:31 +01:00
|
|
|
api 'org.apache.commons:commons-dbcp2:2.9.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 {
|
2021-06-16 20:09:45 +02:00
|
|
|
def git = versionDetails()
|
2020-03-30 01:45:32 +02:00
|
|
|
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
|
2021-06-16 20:09:45 +02:00
|
|
|
|
2020-03-30 01:45:32 +02:00
|
|
|
expand (
|
2021-06-16 20:09:45 +02:00
|
|
|
version: project.version,
|
|
|
|
gitHash: git.gitHashFull,
|
|
|
|
gitClean: git.isCleanTag
|
|
|
|
)
|
2020-03-30 01:45:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-03 17:51:07 +02:00
|
|
|
license {
|
|
|
|
exclude('**/AABB.java')
|
|
|
|
}
|
|
|
|
|
2020-08-25 11:59:17 +02:00
|
|
|
//resource Extensions
|
2021-11-20 12:31:18 +01:00
|
|
|
String[] resourceIds = [
|
2021-11-21 15:15:23 +01:00
|
|
|
"1_13", "1_15", "1_16", "1_18"
|
2021-11-20 12:31:18 +01:00
|
|
|
];
|
2020-08-25 11:59:17 +02:00
|
|
|
|
|
|
|
task zipResourceExtensions {
|
2021-11-20 12:31:18 +01:00
|
|
|
for (String id : resourceIds) {
|
|
|
|
dependsOn "zipResourceExtensions$id"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (String id : resourceIds) zipResourcesTask(id)
|
|
|
|
void zipResourcesTask(String resourceId) {
|
|
|
|
task ("zipResourceExtensions$resourceId", type: Zip) {
|
|
|
|
from fileTree("src/main/resourceExtensions/mc$resourceId")
|
|
|
|
archiveName 'resourceExtensions.zip'
|
|
|
|
destinationDir(file("src/main/resources/de/bluecolored/bluemap/mc$resourceId/"))
|
|
|
|
outputs.upToDateWhen{ false }
|
|
|
|
}
|
2019-12-29 16:23:43 +01:00
|
|
|
}
|
|
|
|
|
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)
|