3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-19 09:20:08 +01:00

[ci skip] build: Switch to bom (#1778)

* build: Switch to bom

* chore: Use javax over checkerframework
Dieser Commit ist enthalten in:
Alexander Brandes 2022-06-10 01:26:48 +02:00 committet von GitHub
Ursprung d7d43869e6
Commit c5a50179f2
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
10 geänderte Dateien mit 47 neuen und 57 gelöschten Zeilen

Datei anzeigen

@ -15,6 +15,7 @@ fun Project.applyPaperweightAdapterConfiguration() {
dependencies { dependencies {
"implementation"(project(":worldedit-bukkit")) "implementation"(project(":worldedit-bukkit"))
"implementation"(platform("com.intellectualsites.bom:bom-1.18.x:1.4"))
} }
tasks.named("assemble") { tasks.named("assemble") {

Datei anzeigen

@ -45,6 +45,7 @@ fun Project.applyCommonJavaConfiguration(sourcesJar: Boolean, banSlf4j: Boolean
"testImplementation"("org.mockito:mockito-core:3.12.4") "testImplementation"("org.mockito:mockito-core:3.12.4")
"testImplementation"("org.mockito:mockito-junit-jupiter:3.12.4") "testImplementation"("org.mockito:mockito-junit-jupiter:3.12.4")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:5.8.1") "testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:5.8.1")
"implementation"(platform("com.intellectualsites.bom:bom-1.18.x:1.4"))
} }
// Java 8 turns on doclint which we fail // Java 8 turns on doclint which we fail

Datei anzeigen

@ -1,15 +1,10 @@
[versions] [versions]
# Minecraft expectations # Minecraft expectations
fastutil = "8.5.6" fastutil = "8.5.6"
log4j = "2.17.0"
guava = "31.0.1-jre" guava = "31.0.1-jre"
gson = "2.8.9" log4j = "2.17.1"
# Platform expectations
paper = "1.18.1-R0.1-SNAPSHOT"
# Plugins # Plugins
vault = "1.7.1"
dummypermscompat = "1.10" dummypermscompat = "1.10"
worldguard-bukkit = "7.0.7" worldguard-bukkit = "7.0.7"
mapmanager = "1.8.0-SNAPSHOT" mapmanager = "1.8.0-SNAPSHOT"
@ -18,14 +13,10 @@ griefdefender = "2.1.0-SNAPSHOT"
mcore = "7.0.1" mcore = "7.0.1"
residence = "4.5._13.1" residence = "4.5._13.1"
towny = "0.98.2.2" towny = "0.98.2.2"
plotsquared = "6.7.0"
redprotect = "1.9.6" redprotect = "1.9.6"
# Third party # Third party
paperlib = "1.0.8-SNAPSHOT"
bstats = "3.0.0" bstats = "3.0.0"
serverlib = "2.3.1"
paster = "1.1.4"
sparsebitset = "1.2" sparsebitset = "1.2"
parallelgzip = "1.0.5" parallelgzip = "1.0.5"
adventure = "4.9.3" adventure = "4.9.3"
@ -48,7 +39,6 @@ piston = "0.5.7"
# Tests # Tests
mockito = "4.6.1" mockito = "4.6.1"
checker-qual = "3.22.0"
# Gradle plugins # Gradle plugins
pluginyml = "0.5.1" pluginyml = "0.5.1"
@ -56,16 +46,10 @@ pluginyml = "0.5.1"
[libraries] [libraries]
# Minecraft expectations # Minecraft expectations
fastutil = { group = "it.unimi.dsi", name = "fastutil", version.ref = "fastutil" } fastutil = { group = "it.unimi.dsi", name = "fastutil", version.ref = "fastutil" }
log4j = { group = "org.apache.logging.log4j", name = "log4j-api", version.ref = "log4j" }
log4jBom = { group = "org.apache.logging.log4j", name = "log4j-bom", version.ref = "log4j" } log4jBom = { group = "org.apache.logging.log4j", name = "log4j-bom", version.ref = "log4j" }
guava = { group = "com.google.guava", name = "guava", version.ref = "guava" } guava = { group = "com.google.guava", name = "guava", version.ref = "guava" }
gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
#Platform expectations
paper = { group = "io.papermc.paper", name = "paper-api", version.ref = "paper" }
# Plugins # Plugins
vault = { group = "com.github.MilkBowl", name = "VaultAPI", version.ref = "vault" }
dummypermscompat = { group = "com.sk89q", name = "dummypermscompat", version.ref = "dummypermscompat" } dummypermscompat = { group = "com.sk89q", name = "dummypermscompat", version.ref = "dummypermscompat" }
worldguard = { group = "com.sk89q.worldguard", name = "worldguard-bukkit", version.ref = "worldguard-bukkit" } worldguard = { group = "com.sk89q.worldguard", name = "worldguard-bukkit", version.ref = "worldguard-bukkit" }
mapmanager = { group = "com.github.InventivetalentDev", name = "MapManager", version.ref = "mapmanager" } mapmanager = { group = "com.github.InventivetalentDev", name = "MapManager", version.ref = "mapmanager" }
@ -74,19 +58,12 @@ griefdefender = { group = "com.griefdefender", name = "api", version.ref = "grie
mcore = { group = "com.massivecraft", name = "mcore", version.ref = "mcore" } mcore = { group = "com.massivecraft", name = "mcore", version.ref = "mcore" }
residence = { group = "com.bekvon.bukkit.residence", name = "Residence", version.ref = "residence" } residence = { group = "com.bekvon.bukkit.residence", name = "Residence", version.ref = "residence" }
towny = { group = "com.github.TownyAdvanced", name = "Towny", version.ref = "towny" } towny = { group = "com.github.TownyAdvanced", name = "Towny", version.ref = "towny" }
plotsquaredBukkit = { group = "com.plotsquared", name = "PlotSquared-Bukkit", version.ref = "plotsquared" }
plotsquaredCore = { group = "com.plotsquared", name = "PlotSquared-Core", version.ref = "plotsquared" }
redprotect = { group = "net.fabiozumbi12", name = "redprotect", version.ref = "redprotect" } redprotect = { group = "net.fabiozumbi12", name = "redprotect", version.ref = "redprotect" }
# Third Party # Third Party
paperlib = { group = "io.papermc", name = "paperlib", version.ref = "paperlib" }
bstatsBukkit = { group = "org.bstats", name = "bstats-bukkit", version.ref = "bstats" }
bstatsBase = { group = "org.bstats", name = "bstats-base", version.ref = "bstats" } bstatsBase = { group = "org.bstats", name = "bstats-base", version.ref = "bstats" }
serverlib = { group = "dev.notmyfault.serverlib", name = "ServerLib", version.ref = "serverlib" }
paster = { group = "com.intellectualsites.paster", name = "Paster", version.ref = "paster" }
sparsebitset = { group = "com.zaxxer", name = "SparseBitSet", version.ref = "sparsebitset" } sparsebitset = { group = "com.zaxxer", name = "SparseBitSet", version.ref = "sparsebitset" }
parallelgzip = { group = "org.anarres", name = "parallelgzip", version.ref = "parallelgzip" } parallelgzip = { group = "org.anarres", name = "parallelgzip", version.ref = "parallelgzip" }
adventure = { group = "net.kyori", name = "adventure-api", version.ref = "adventure" }
adventureNbt = { group = "net.kyori", name = "adventure-nbt", version.ref = "adventure" } adventureNbt = { group = "net.kyori", name = "adventure-nbt", version.ref = "adventure" }
truezip = { group = "de.schlichtherle", name = "truezip", version.ref = "truezip" } truezip = { group = "de.schlichtherle", name = "truezip", version.ref = "truezip" }
autoValueAnnotations = { group = "com.google.auto.value", name = "auto-value-annotations", version.ref = "auto-value" } autoValueAnnotations = { group = "com.google.auto.value", name = "auto-value-annotations", version.ref = "auto-value" }
@ -105,7 +82,6 @@ lz4JavaStream = { group = "net.jpountz", name = "lz4-java-stream", version.ref =
# Internal # Internal
## Text ## Text
adventureTextAdapterBukkit = { group = "net.kyori", name = "text-adapter-bukkit", version.ref = "text-adapter" } adventureTextAdapterBukkit = { group = "net.kyori", name = "text-adapter-bukkit", version.ref = "text-adapter" }
adventureTextMiniMessage = { group = "net.kyori", name = "adventure-text-minimessage", version.ref = "adventure-text-minimessage" }
adventureTextApi = { group = "net.kyori", name = "text-api", version.ref = "text" } adventureTextApi = { group = "net.kyori", name = "text-api", version.ref = "text" }
adventureTextSerializerGson = { group = "net.kyori", name = "text-serializer-gson", version.ref = "text" } adventureTextSerializerGson = { group = "net.kyori", name = "text-serializer-gson", version.ref = "text" }
adventureTextSerializerLegacy = { group = "net.kyori", name = "text-serializer-legacy", version.ref = "text" } adventureTextSerializerLegacy = { group = "net.kyori", name = "text-serializer-legacy", version.ref = "text" }
@ -119,7 +95,6 @@ pistonRuntime = { group = "org.enginehub.piston.core-ap", name = "runtime", vers
# Tests # Tests
mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" } mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" }
checkerqual = { group = "org.checkerframework", name = "checker-qual", version.ref = "checker-qual" }
log4jCore = { group = "org.apache.logging.log4j", name = "log4j-core", version.ref = "log4j" } log4jCore = { group = "org.apache.logging.log4j", name = "log4j-core", version.ref = "log4j" }
[plugins] [plugins]

Datei anzeigen

@ -23,5 +23,5 @@ configurations.all {
dependencies { dependencies {
paperDevBundle("1.17.1-R0.1-20220414.034903-210") paperDevBundle("1.17.1-R0.1-20220414.034903-210")
compileOnly(libs.paperlib) compileOnly("io.papermc:paperlib")
} }

Datei anzeigen

@ -13,5 +13,5 @@ repositories {
dependencies { dependencies {
paperDevBundle("1.18.1-R0.1-20220228.153921-147") paperDevBundle("1.18.1-R0.1-20220228.153921-147")
compileOnly(libs.paperlib) compileOnly("io.papermc:paperlib")
} }

Datei anzeigen

@ -14,5 +14,5 @@ repositories {
dependencies { dependencies {
// https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/ // https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
paperDevBundle("1.18.2-R0.1-20220424.184034-95") paperDevBundle("1.18.2-R0.1-20220424.184034-95")
compileOnly(libs.paperlib) compileOnly("io.papermc:paperlib")
} }

Datei anzeigen

@ -63,19 +63,19 @@ dependencies {
implementation(libs.fastutil) implementation(libs.fastutil)
// Platform expectations // Platform expectations
compileOnly(libs.paper) { compileOnly("io.papermc.paper:paper-api") {
exclude("junit", "junit") exclude("junit", "junit")
exclude(group = "org.slf4j", module = "slf4j-api") exclude(group = "org.slf4j", module = "slf4j-api")
} }
// Logging // Logging
localImplementation(libs.log4j) localImplementation("org.apache.logging.log4j:log4j-api")
localImplementation(libs.log4jBom) { localImplementation(libs.log4jBom) {
because("Spigot provides Log4J (sort of, not in API, implicitly part of server)") because("Spigot provides Log4J (sort of, not in API, implicitly part of server)")
} }
// Plugins // Plugins
compileOnly(libs.vault) { isTransitive = false } compileOnly("com.github.MilkBowl:VaultAPI") { isTransitive = false }
compileOnly(libs.dummypermscompat) { compileOnly(libs.dummypermscompat) {
exclude("com.github.MilkBowl", "VaultAPI") exclude("com.github.MilkBowl", "VaultAPI")
} }
@ -91,26 +91,26 @@ dependencies {
compileOnly(libs.mcore) { isTransitive = false } compileOnly(libs.mcore) { isTransitive = false }
compileOnly(libs.residence) { isTransitive = false } compileOnly(libs.residence) { isTransitive = false }
compileOnly(libs.towny) { isTransitive = false } compileOnly(libs.towny) { isTransitive = false }
compileOnly(libs.plotsquaredBukkit) { isTransitive = false } compileOnly("com.plotsquared:PlotSquared-Bukkit") { isTransitive = false }
compileOnly(libs.plotsquaredCore) { isTransitive = false } compileOnly("com.plotsquared:PlotSquared-Core") { isTransitive = false }
// Third party // Third party
implementation(libs.paperlib) implementation("io.papermc:paperlib")
implementation(libs.bstatsBukkit) { isTransitive = false } implementation("org.bstats:bstats-bukkit") { isTransitive = false }
implementation(libs.bstatsBase) { isTransitive = false } implementation(libs.bstatsBase) { isTransitive = false }
implementation(libs.serverlib) implementation("dev.notmyfault.serverlib:ServerLib")
api(libs.paster) { isTransitive = false } api("com.intellectualsites.paster:Paster") { isTransitive = false }
api(libs.lz4Java) { isTransitive = false } api(libs.lz4Java) { isTransitive = false }
api(libs.sparsebitset) { isTransitive = false } api(libs.sparsebitset) { isTransitive = false }
api(libs.parallelgzip) { isTransitive = false } api(libs.parallelgzip) { isTransitive = false }
compileOnly(libs.adventure) compileOnly("net.kyori:adventure-api")
compileOnlyApi(libs.checkerqual) compileOnlyApi("org.checkerframework:checker-qual")
// Tests // Tests
testImplementation(libs.mockito) testImplementation(libs.mockito)
testImplementation(libs.adventure) testImplementation("net.kyori:adventure-api")
testImplementation(libs.checkerqual) testImplementation("org.checkerframework:checker-qual")
testImplementation(libs.paper) { isTransitive = true } testImplementation("io.papermc.paper:paper-api") { isTransitive = true }
} }
tasks.named<Copy>("processResources") { tasks.named<Copy>("processResources") {

Datei anzeigen

@ -14,6 +14,7 @@ import com.sk89q.worldedit.function.pattern.Pattern;
import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector2;
import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.regions.CuboidRegion;
import com.sk89q.worldedit.util.SideEffectSet;
import com.sk89q.worldedit.world.World; import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.biome.BiomeType; import com.sk89q.worldedit.world.biome.BiomeType;
import com.sk89q.worldedit.world.block.BaseBlock; import com.sk89q.worldedit.world.block.BaseBlock;
@ -86,6 +87,11 @@ public class FaweQueueCoordinator extends QueueCoordinator {
return false; return false;
} }
@Override
public void setBiomesEnabled(final boolean enabled) {
}
@Override @Override
public boolean setEntity(@Nonnull Entity entity) { public boolean setEntity(@Nonnull Entity entity) {
return false; return false;
@ -182,6 +188,16 @@ public class FaweQueueCoordinator extends QueueCoordinator {
} }
@Override
public @Nullable SideEffectSet getSideEffectSet() {
return null;
}
@Override
public void setSideEffectSet(@Nullable final SideEffectSet sideEffectSet) {
}
@Override @Override
public void regenChunk(int x, int z) { public void regenChunk(int x, int z) {
instance.regenerateChunk(x, z, null, null); instance.regenerateChunk(x, z, null, null);

Datei anzeigen

@ -27,16 +27,15 @@ dependencies {
// Minecraft expectations // Minecraft expectations
annotationProcessor(libs.guava) annotationProcessor(libs.guava)
implementation(libs.guava) implementation("com.google.guava:guava")
implementation(libs.gson) implementation("com.google.code.gson:gson")
// Logging // Logging
implementation(libs.log4jBom) { implementation(libs.log4jBom) {
because("We control Log4J on this platform") because("We control Log4J on this platform")
} }
implementation(libs.log4j) implementation("org.apache.logging.log4j:log4j-api")
implementation(libs.log4jCore implementation(libs.log4jCore)
)
implementation("commons-cli:commons-cli:1.5.0") implementation("commons-cli:commons-cli:1.5.0")
api(libs.parallelgzip) { isTransitive = false } api(libs.parallelgzip) { isTransitive = false }
api(libs.lz4Java) api(libs.lz4Java)

Datei anzeigen

@ -24,20 +24,18 @@ dependencies {
// Minecraft expectations // Minecraft expectations
implementation(libs.fastutil) implementation(libs.fastutil)
implementation(libs.guava) implementation("com.google.guava:guava")
implementation(libs.gson) implementation("com.google.code.gson:gson")
// Platform expectations // Platform expectations
implementation("org.yaml:snakeyaml") implementation("org.yaml:snakeyaml")
// Logging // Logging
implementation(libs.log4j) { implementation("org.apache.logging.log4j:log4j-api")
because("Mojang provides Log4J 2.14.1")
}
// Plugins // Plugins
compileOnly(libs.redprotect) { isTransitive = false } compileOnly(libs.redprotect) { isTransitive = false }
compileOnly(libs.plotsquaredCore) { isTransitive = false } compileOnly("com.plotsquared:PlotSquared-Core") { isTransitive = false }
// ensure this is on the classpath for the AP // ensure this is on the classpath for the AP
annotationProcessor(libs.guava) annotationProcessor(libs.guava)
@ -48,11 +46,11 @@ dependencies {
compileOnly(libs.truezip) compileOnly(libs.truezip)
implementation(libs.findbugs) implementation(libs.findbugs)
implementation(libs.rhino) implementation(libs.rhino)
compileOnly(libs.adventure) compileOnly("net.kyori:adventure-api")
compileOnlyApi(libs.adventureNbt) compileOnlyApi(libs.adventureNbt)
compileOnlyApi(libs.adventureTextMiniMessage) compileOnlyApi("net.kyori:adventure-text-minimessage")
implementation(libs.zstd) { isTransitive = false } implementation(libs.zstd) { isTransitive = false }
api(libs.paster) api("com.intellectualsites.paster:Paster")
compileOnly(libs.lz4Java) { isTransitive = false } compileOnly(libs.lz4Java) { isTransitive = false }
compileOnly(libs.sparsebitset) compileOnly(libs.sparsebitset)
compileOnly(libs.parallelgzip) { isTransitive = false } compileOnly(libs.parallelgzip) { isTransitive = false }