BlueMap/implementations/sponge-8.0.0/build.gradle

72 lines
2.3 KiB
Groovy
Raw Normal View History

2021-09-30 17:30:14 +02:00
import org.spongepowered.gradle.plugin.config.PluginLoaders
import org.spongepowered.plugin.metadata.model.PluginDependency
plugins {
id 'org.spongepowered.gradle.plugin' version '2.0.0'
}
sponge {
apiVersion("8.0.0-SNAPSHOT")
license("MIT")
loader {
name(PluginLoaders.JAVA_PLAIN)
version("1.0")
}
plugin("bluemap") {
displayName("bluemap")
entrypoint("de.bluecolored.bluemap.sponge8.SpongePlugin")
description("A 3d-map of your Minecraft worlds view-able in your browser using three.js (WebGL)")
contributor("Blue (TBlueF, Lukas Rieger)") {
description("Lead Developer")
}
dependency("spongeapi") {
loadOrder(PluginDependency.LoadOrder.AFTER)
version("8.0.0-SNAPSHOT")
optional(false)
}
}
}
2021-04-04 22:55:33 +02:00
2021-09-30 17:30:14 +02:00
dependencies {
2021-05-16 22:03:51 +02:00
implementation group: 'org.bstats', name: 'bstats-sponge', version: '2.2.1'
implementation (project(':BlueMapCommon')) {
2021-04-04 22:55:33 +02:00
//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'
}
}
2021-04-04 22:55:33 +02:00
build.dependsOn shadowJar {
destinationDirectory = file '../../build/release'
archiveFileName.set("BlueMap-${archiveVersion.get()}-sponge-8.0.0.jar")
2021-04-04 22:55:33 +02:00
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'
2021-05-16 22:03:51 +02:00
relocate 'org.spongepowered.configurate', 'de.bluecolored.shadow.configurate'
2021-04-04 22:55:33 +02:00
relocate 'org.aopalliance', 'de.bluecolored.shadow.aopalliance'
relocate 'org.bstats', 'de.bluecolored.shadow.bstats'
2021-04-04 22:55:33 +02:00
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'
2021-04-04 22:55:33 +02:00
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'META-INF/plugins.json'
duplicatesStrategy = DuplicatesStrategy.WARN
2021-04-04 22:55:33 +02:00
expand (
version: project.version
)
}
}