2022-05-29 16:08:50 +02:00
|
|
|
import org.spongepowered.gradle.plugin.config.PluginLoaders
|
|
|
|
import org.spongepowered.gradle.vanilla.repository.MinecraftPlatform
|
2019-12-07 19:12:45 +01:00
|
|
|
|
2022-05-29 16:08:50 +02:00
|
|
|
plugins {
|
2023-09-22 15:53:31 +02:00
|
|
|
id "org.spongepowered.gradle.plugin" version "2.2.0"
|
2022-07-02 09:48:24 +02:00
|
|
|
id "org.spongepowered.gradle.vanilla" version "0.2.1-SNAPSHOT"
|
2019-12-07 19:12:45 +01:00
|
|
|
}
|
|
|
|
|
2018-12-18 20:13:05 +01:00
|
|
|
dependencies {
|
2022-07-13 20:21:20 +02:00
|
|
|
implementation project(":api")
|
|
|
|
implementation project(":common")
|
2019-09-26 10:14:46 +02:00
|
|
|
|
2022-07-13 20:21:20 +02:00
|
|
|
shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion"
|
2022-07-03 09:54:01 +02:00
|
|
|
shadow "net.playeranalytics:platform-abstraction-layer-sponge:$palVersion"
|
|
|
|
shadow "org.bstats:bstats-sponge:$bstatsVersion"
|
2018-12-18 20:13:05 +01:00
|
|
|
|
|
|
|
annotationProcessor "org.spongepowered:spongeapi:$spongeVersion"
|
2022-12-06 10:04:39 +01:00
|
|
|
compileOnly "org.spongepowered:mixin:0.8.5"
|
2018-12-18 20:13:05 +01:00
|
|
|
|
2022-07-13 20:21:20 +02:00
|
|
|
testImplementation "org.spongepowered:spongeapi:$spongeVersion"
|
2021-06-12 07:24:24 +02:00
|
|
|
testImplementation project(path: ":common", configuration: 'testArtifacts')
|
2018-12-18 20:13:05 +01:00
|
|
|
}
|
|
|
|
|
2022-05-29 16:08:50 +02:00
|
|
|
sponge {
|
|
|
|
apiVersion(spongeVersion)
|
|
|
|
license("LGPLv3")
|
|
|
|
loader {
|
|
|
|
name(PluginLoaders.JAVA_PLAIN)
|
|
|
|
version("1.0")
|
|
|
|
}
|
|
|
|
plugin("plan") {
|
|
|
|
displayName("Plan")
|
|
|
|
version(fullVersion)
|
|
|
|
entrypoint("com.djrapitops.plan.PlanSponge")
|
|
|
|
description("Player Analytics Plugin by AuroraLS3")
|
|
|
|
contributor("AuroraLS3") {
|
|
|
|
description("Author")
|
|
|
|
}
|
|
|
|
|
2022-10-23 08:39:24 +02:00
|
|
|
dependency("spongeapi") {
|
2022-10-23 08:43:24 +02:00
|
|
|
loadOrder(org.spongepowered.plugin.metadata.model.PluginDependency.LoadOrder.AFTER)
|
2022-10-23 08:39:24 +02:00
|
|
|
optional(false)
|
2022-10-23 08:43:24 +02:00
|
|
|
version("$spongeVersion")
|
2022-10-23 08:39:24 +02:00
|
|
|
}
|
2022-05-29 16:08:50 +02:00
|
|
|
// Dependencies
|
|
|
|
// version is a *required* property (empty string works fine)
|
|
|
|
dependency("griefprevention") {
|
|
|
|
optional(true)
|
2023-07-30 08:28:46 +02:00
|
|
|
version("*")
|
2022-05-29 16:08:50 +02:00
|
|
|
}
|
|
|
|
dependency("luckperms") {
|
|
|
|
optional(true)
|
2023-07-30 08:28:46 +02:00
|
|
|
version("*")
|
2022-05-29 16:08:50 +02:00
|
|
|
}
|
|
|
|
dependency("nucleus") {
|
|
|
|
optional(true)
|
2023-07-30 08:28:46 +02:00
|
|
|
version("*")
|
2022-05-29 16:08:50 +02:00
|
|
|
}
|
|
|
|
dependency("redprotect") {
|
|
|
|
optional(true)
|
2023-07-30 08:28:46 +02:00
|
|
|
version("*")
|
2022-05-29 16:08:50 +02:00
|
|
|
}
|
|
|
|
dependency("nuvotifier") {
|
|
|
|
optional(true)
|
2023-07-30 08:28:46 +02:00
|
|
|
version("*")
|
2022-05-29 16:08:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
minecraft {
|
|
|
|
version("1.16.5")
|
|
|
|
platform(MinecraftPlatform.JOINED)
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
|
|
|
options.release = 11
|
|
|
|
}
|
|
|
|
|
2018-12-18 20:13:05 +01:00
|
|
|
shadowJar {
|
2022-07-03 09:54:01 +02:00
|
|
|
configurations = [project.configurations.shadow]
|
|
|
|
|
|
|
|
relocate "org.bstats", "net.playeranalytics.bstats.utilities.metrics"
|
2022-05-29 16:08:50 +02:00
|
|
|
}
|