Files
distant-horizons-core-sharded/api/build.gradle
T
James Seibel 9eefd53fdc Fix test compiling in API
TODO: why do we need manifold to compile the API when any test file is present?
2022-09-05 16:08:40 -05:00

39 lines
1.2 KiB
Groovy

version = "API-" + rootProject.versionStr
configurations {
}
dependencies {
// TODO: can we remove the need for manifold? it shouldn't be necessary here
testAnnotationProcessor "systems.manifold:manifold-preprocessor:${rootProject.manifold_version}"
}
shadowJar {
exclude "architectury.common.json"
configurations = [project.configurations.shadowMe]
// Compression
relocate 'org.tukaani', 'distanthorizons.libraries.tukaani'
relocate 'org.apache.commons.compress', 'distanthorizons.libraries.apache.commons.compress'
// Toml & Json for config
relocate 'com.electronwill.nightconfig', 'distanthorizons.libraries.electronwill.nightconfig'
// FIXME: This is a massive library that is located in lots of different spots
relocate 'com.googlecode.json-simple', 'distanthorizons.libraries.googlecode.json-simple'
relocate 'org.json.simple', 'distanthorizons.libraries.json.simple'
// Theming
relocate 'com.formdev.flatlaf', 'distanthorizons.libraries.formdev.flatlaf'
// SVG
relocate 'com.kitfox.svg', 'distanthorizons.libraries.kitfox.svg'
classifier null
mergeServiceFiles()
}
// Using jar.finalizedBy(shadowJar) causes issues so we do this scuffed bypass
jar.dependsOn(shadowJar)
jar.enabled(false)