mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
Fix bStats becoming a transitive dependency (#4426)
This commit is contained in:
parent
90828965df
commit
082950cc18
@ -10,8 +10,6 @@ dependencies {
|
||||
|
||||
api 'io.papermc:paperlib:1.0.6'
|
||||
|
||||
api 'org.bstats:bstats-bukkit:1.8'
|
||||
|
||||
implementation 'org.spongepowered:configurate-yaml:4.1.1'
|
||||
implementation 'org.checkerframework:checker-qual:3.14.0'
|
||||
|
||||
|
@ -4,4 +4,5 @@ import org.gradle.kotlin.dsl.property
|
||||
|
||||
abstract class EssentialsBaseExtension(private val project: Project) {
|
||||
val injectBukkitApi: Property<Boolean> = project.objects.property<Boolean>().convention(true)
|
||||
val injectBstats: Property<Boolean> = project.objects.property<Boolean>().convention(true)
|
||||
}
|
||||
|
@ -32,6 +32,11 @@ afterEvaluate {
|
||||
api("org.spigotmc", "spigot-api", spigotVersion)
|
||||
}
|
||||
}
|
||||
if (baseExtension.injectBstats.get()) {
|
||||
dependencies {
|
||||
implementation("org.bstats", "bstats-bukkit", "1.8")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
@ -8,4 +8,5 @@ dependencies {
|
||||
|
||||
essentials {
|
||||
injectBukkitApi.set(false)
|
||||
injectBstats.set(false)
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
plugins {
|
||||
id("essentials.base-conventions")
|
||||
}
|
||||
|
||||
essentials {
|
||||
injectBstats.set(false)
|
||||
}
|
||||
|
@ -9,4 +9,5 @@ dependencies {
|
||||
|
||||
essentials {
|
||||
injectBukkitApi.set(false)
|
||||
injectBstats.set(false)
|
||||
}
|
||||
|
@ -9,4 +9,5 @@ dependencies {
|
||||
|
||||
essentials {
|
||||
injectBukkitApi.set(false)
|
||||
injectBstats.set(false)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user