BlueMap/implementations/sponge-8.0.0/build.gradle
2021-05-16 22:20:48 +02:00

45 lines
1.7 KiB
Groovy

dependencies {
shadow "org.spongepowered:spongeapi:8.0.0-SNAPSHOT"
implementation group: 'org.bstats', name: 'bstats-sponge', version: '2.2.1'
implementation (project(':BlueMapCommon')) {
//exclude dependencies provided by sponge
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'org.apache.commons', module: 'commons-lang3'
exclude group: 'javax.inject'
exclude group: 'com.google.inject'
}
}
build.dependsOn shadowJar {
destinationDirectory = file '../../build/release'
archiveFileName.set("BlueMap-${archiveVersion.get()}-sponge-8.0.0.jar")
relocate 'net.querz.nbt', 'de.bluecolored.shadow.querz.nbt'
relocate 'org.apache.commons.io', 'de.bluecolored.shadow.apache.commons.io'
relocate 'com.mojang.brigadier', 'de.bluecolored.shadow.mojang.brigadier'
relocate 'com.github.benmanes.caffeine', 'de.bluecolored.shadow.benmanes.caffeine'
relocate 'com.google.errorprone', 'de.bluecolored.shadow.google.errorprone'
relocate 'org.spongepowered.configurate', 'de.bluecolored.shadow.configurate'
relocate 'org.aopalliance', 'de.bluecolored.shadow.aopalliance'
relocate 'org.bstats', 'de.bluecolored.shadow.bstats'
relocate 'com.typesafe.config', 'de.bluecolored.shadow.typesafe.config'
relocate 'org.checkerframework', 'de.bluecolored.shadow.checkerframework'
relocate 'org.codehaus', 'de.bluecolored.shadow.codehaus'
relocate 'io.leangen.geantyref', 'de.bluecolored.shadow.geantyref'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'META-INF/plugins.json'
duplicatesStrategy = DuplicatesStrategy.WARN
expand (
version: project.version
)
}
}