dependencies { compile 'com.github.ben-manes.caffeine:caffeine:2.8.5' compile 'com.google.code.gson:gson:2.8.0' compile 'org.apache.commons:commons-lang3:3.6' compile group: 'commons-io', name: 'commons-io', version: '2.5' compile 'com.flowpowered:flow-math:1.0.3' compile 'org.spongepowered:configurate-hocon:3.7.1' compile 'org.spongepowered:configurate-gson:3.7.1' compile 'com.github.Querz:NBT:4.0' testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2' } test { useJUnitPlatform() } processResources { from(sourceSets.main.resources.srcDirs) { include 'de/bluecolored/bluemap/version.json' expand ( version: project.version ) } } license { exclude('**/AABB.java') } //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/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 } } //always update the zip before build processResources.dependsOn(zipResourceExtensions)