3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 18:10:08 +01:00

Switch to version catalogs

- Closes #1204
- Switch to security advisory
- Move fawe-tests to fawe packages
Dieser Commit ist enthalten in:
NotMyFault 2021-08-01 19:28:51 +02:00
Ursprung 9f3a451ef6
Commit a5e84dcfea
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
15 geänderte Dateien mit 276 neuen und 134 gelöschten Zeilen

Datei anzeigen

@ -1,8 +1,5 @@
blank_issues_enabled: false blank_issues_enabled: false
contact_links: contact_links:
- name: Reporting Security Vulnerabilities
url: https://forms.gle/btgdRn9yhGtzEiGW8
about: Use this form to report security vulnerabilities. Do not use the public issue tracker.
- name: IntellectualSites Discord - name: IntellectualSites Discord
url: https://discord.gg/intellectualsites url: https://discord.gg/intellectualsites
about: Our support Discord, please ask questions and seek support here. about: Our support Discord, please ask questions and seek support here.

3
SECURITY.md Normale Datei
Datei anzeigen

@ -0,0 +1,3 @@
If you discover a security vulnerability in FastAsyncWorldEdit, please submit it through the [Security Vulnerability Form](https://forms.gle/btgdRn9yhGtzEiGW8).
Thanks for helping make FastAsyncWorldEdit safe for everyone.

Datei anzeigen

@ -1,9 +1,7 @@
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginExtension import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.jvm.toolchain.JavaLanguageVersion import org.gradle.jvm.toolchain.JavaLanguageVersion
import org.gradle.jvm.toolchain.JvmVendorSpec
import org.gradle.kotlin.dsl.dependencies import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.get
import org.gradle.kotlin.dsl.repositories import org.gradle.kotlin.dsl.repositories
import org.gradle.kotlin.dsl.the import org.gradle.kotlin.dsl.the
@ -56,15 +54,15 @@ fun Project.applyCommonConfiguration() {
continue continue
} }
add(conf.name, "com.google.guava:guava") { add(conf.name, "com.google.guava:guava") {
version { require(Versions.GUAVA) } version { require("21.0") }
because("Mojang provides Guava") because("Mojang provides Guava")
} }
add(conf.name, "com.google.code.gson:gson") { add(conf.name, "com.google.code.gson:gson") {
version { require(Versions.GSON) } version { require("2.8.0") }
because("Mojang provides Gson") because("Mojang provides Gson")
} }
add(conf.name, "it.unimi.dsi:fastutil") { add(conf.name, "it.unimi.dsi:fastutil") {
version { require(Versions.FAST_UTIL) } version { require("8.2.1") }
because("Mojang provides FastUtil") because("Mojang provides FastUtil")
} }
} }

Datei anzeigen

@ -51,6 +51,7 @@ fun Project.applyLibrariesConfiguration() {
exclude(dependency("com.google.code.gson:gson")) exclude(dependency("com.google.code.gson:gson"))
exclude(dependency("org.checkerframework:checker-qual")) exclude(dependency("org.checkerframework:checker-qual"))
exclude(dependency("org.apache.logging.log4j:log4j-api")) exclude(dependency("org.apache.logging.log4j:log4j-api"))
exclude(dependency("com.google.code.findbugs:jsr305"))
} }
relocations.forEach { (from, to) -> relocations.forEach { (from, to) ->

Datei anzeigen

@ -1,6 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.JavaVersion import org.gradle.api.JavaVersion
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.api.attributes.java.TargetJvmVersion
import org.gradle.api.plugins.JavaPluginConvention import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.bundling.Jar import org.gradle.api.tasks.bundling.Jar
import org.gradle.api.tasks.compile.JavaCompile import org.gradle.api.tasks.compile.JavaCompile
@ -44,18 +45,22 @@ fun Project.applyPlatformAndCoreConfiguration() {
options.compilerArgs.add("-parameters") options.compilerArgs.add("-parameters")
} }
configurations.all {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 16)
}
tasks.withType<Test>().configureEach { tasks.withType<Test>().configureEach {
useJUnitPlatform() useJUnitPlatform()
} }
dependencies { dependencies {
"testImplementation"("org.junit.jupiter:junit-jupiter-api:${Versions.JUNIT}") "compileOnly"("com.google.code.findbugs:jsr305:3.0.2")
"testImplementation"("org.junit.jupiter:junit-jupiter-params:${Versions.JUNIT}") "testImplementation"("org.junit.jupiter:junit-jupiter-api:5.7.2")
"testImplementation"("org.mockito:mockito-core:${Versions.MOCKITO}") "testImplementation"("org.junit.jupiter:junit-jupiter-params:5.7.2")
"testImplementation"("org.mockito:mockito-junit-jupiter:${Versions.MOCKITO}") "testImplementation"("org.mockito:mockito-core:3.11.2")
"testImplementation"("net.bytebuddy:byte-buddy:1.11.0") "testImplementation"("org.mockito:mockito-junit-jupiter:3.11.2")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:${Versions.JUNIT}") "testImplementation"("net.bytebuddy:byte-buddy:1.11.9")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:3.11.2")
} }
// Java 8 turns on doclint which we fail // Java 8 turns on doclint which we fail

Datei anzeigen

@ -1,22 +0,0 @@
import org.gradle.api.Project
object Versions {
const val TEXT = "3.0.4"
const val TEXT_EXTRAS = "3.0.6"
const val PISTON = "0.5.7"
const val AUTO_VALUE = "1.7.4"
const val JUNIT = "5.7.0"
const val MOCKITO = "3.9.0"
const val FAST_UTIL = "8.2.1"
const val GUAVA = "21.0"
const val GSON = "2.8.0"
}
// Properties that need a project reference to resolve:
class ProjectVersions(project: Project) {
val loom = project.rootProject.property("loom.version")
val mixin = project.rootProject.property("mixin.version")
}
val Project.versions
get() = ProjectVersions(this)

129
gradle/libs.versions.toml Normale Datei
Datei anzeigen

@ -0,0 +1,129 @@
[versions]
# Minecraft expectations
fastutil = "8.2.1"
log4j = "2.14.1"
guava = "21.0"
gson = "2.8.0"
# Platform expectations
paper = "1.17.1-R0.1-SNAPSHOT"
# Plugins
vault = "1.7"
dummypermscompat = "1.10"
worldguard-bukkit = "7.0.5"
mapmanager = "1.8.0-SNAPSHOT"
griefprevention = "16.17.1"
griefdefender = "920a610"
mcore = "7.0.1"
residence = "4.5._13.1"
towny = "0.97.0.19"
protocollib = "4.7.0"
plotsquaredV6 = "6.0.8-SNAPSHOT"
plotsquaredV4 = "4.514"
redprotect = "1.9.6"
# Third party
flow-math = "1.0.3"
paperlib = "1.0.6"
bstats = "2.2.1"
serverlib = "2.2.1"
paster = "1.0.1-SNAPSHOT"
sparsebitset = "1.2"
parallelgzip = "1.0.5"
adventure = "4.8.1"
truezip = "6.8.4"
auto-value = "1.7.4"
findbugs = "3.0.2"
rhino-runtime = "1.7.13"
zstd-jni = "1.5.0-4"
antlr4 = "4.9.1"
json-simple = "1.1.1"
paranamer = "2.8"
jlibnoise = "1.0.0"
jchronic = "0.2.4a"
lz4-java = "1.8.0"
lz4-stream = "1.0.0"
## Internal
minimessage-text = "4.1.0-SNAPSHOT"
adapter-text = "3.0.6"
text = "3.0.4"
piston = "0.5.7"
# Tests
mockito = "3.11.2"
checker-qual = "3.16.0"
[libraries]
# Minecraft expectations
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" }
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" }
spigot = { group = "org.spigotmc", name = "spigot", version.ref = "paper" }
# Plugins
vault = { group = "com.github.MilkBowl", name = "VaultAPI", version.ref = "vault" }
dummypermscompat = { group = "com.sk89q", name = "dummypermscompat", version.ref = "dummypermscompat" }
worldguard = { group = "com.sk89q.worldguard", name = "worldguard-bukkit", version.ref = "worldguard-bukkit" }
mapmanager = { group = "com.github.InventivetalentDev", name = "MapManager", version.ref = "mapmanager" }
griefprevention = { group = "com.github.TechFortress", name = "GriefPrevention", version.ref = "griefprevention" }
griefdefender = { group = "com.github.bloodmc", name = "GriefDefenderApi", version.ref = "griefdefender" }
mcore = { group = "com.massivecraft", name = "mcore", version.ref = "mcore" }
residence = { group = "com.bekvon.bukkit.residence", name = "Residence", version.ref = "residence" }
towny = { group = "com.github.TownyAdvanced", name = "Towny", version.ref = "towny" }
protocollib = { group = "com.comphenix.protocol", name = "ProtocolLib", version.ref = "protocollib" }
plotsquaredV6Bukkit = { group = "com.plotsquared", name = "PlotSquared-Bukkit", version.ref = "plotsquaredV6" }
plotsquaredV6Core = { group = "com.plotsquared", name = "PlotSquared-Core", version.ref = "plotsquaredV6" }
plotsquaredV4 = { group = "com.github.intellectualsites.plotsquared", name = "PlotSquared-API", version.ref = "plotsquaredV4" }
redprotect = { group = "net.fabiozumbi12", name = "redprotect", version.ref = "redprotect" }
# Third Party
flowmath = { group = "com.flowpowered", name = "flow-math", version.ref = "flow-math" }
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" }
serverlib = { group = "org.incendo.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" }
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" }
truezip = { group = "de.schlichtherle", name = "truezip", version.ref = "truezip" }
autoValueAnnotations = { group = "com.google.auto.value", name = "auto-value-annotations", version.ref = "auto-value" }
autoValue = { group = "com.google.auto.value", name = "auto-value", version.ref = "auto-value" }
findbugs = { group = "com.google.code.findbugs", name = "jsr305", version.ref = "findbugs" }
rhino = { group = "org.mozilla", name = "rhino-runtime", version.ref = "rhino-runtime" }
zstd = { group = "com.github.luben", name = "zstd-jni", version.ref = "zstd-jni" }
antlr4 = { group = "org.antlr", name = "antlr4", version.ref = "antlr4" }
antlr4Runtime = { group = "org.antlr", name = "antlr4-runtime", version.ref = "antlr4" }
jsonSimple = { group = "com.googlecode.json-simple", name = "json-simple", version.ref = "json-simple" }
paranamer = { group = "com.thoughtworks.paranamer", name = "paranamer", version.ref = "paranamer" }
jlibnoise = { group = "com.sk89q.lib", name = "jlibnoise", version.ref = "jlibnoise" }
jchronic = { group = "com.sk89q", name = "jchronic", version.ref = "jchronic" }
lz4Java = { group = "org.lz4", name = "lz4-java", version.ref = "lz4-java" }
lz4JavaStream = { group = "net.jpountz", name = "lz4-java-stream", version.ref = "lz4-stream" }
# Internal
## Text
adventureTextAdapter = { group = "net.kyori", name = "text-adapter-bukkit", version.ref = "adapter-text" }
adventureMiniMessage = { group = "net.kyori", name = "adventure-text-minimessage", version.ref = "minimessage-text" }
adventureTextApi = { group = "net.kyori", name = "text-api", 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" }
adventureTextSerializerPlain = { group = "net.kyori", name = "text-serializer-plain", version.ref = "text" }
## Piston
piston = { group = "org.enginehub.piston", name = "core", version.ref = "piston" }
pistonImpl = { group = "org.enginehub.piston", name = "default-impl", version.ref = "piston" }
pistonAnnotations = { group = "org.enginehub.piston.core-ap", name = "annotations", version.ref = "piston" }
pistonProcessor = { group = "org.enginehub.piston.core-ap", name = "processor", version.ref = "piston" }
pistonRuntime = { group = "org.enginehub.piston.core-ap", name = "runtime", version.ref = "piston" }
# Tests
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" }

Datei anzeigen

@ -18,3 +18,6 @@ dependencyResolutionManagement {
} }
} }
} }
enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

Datei anzeigen

@ -30,10 +30,6 @@ repositories {
name = "ProtocolLib" name = "ProtocolLib"
url = uri("https://repo.dmulloy2.net/nexus/repository/public/") url = uri("https://repo.dmulloy2.net/nexus/repository/public/")
} }
maven {
name = "Inventivetalent"
url = uri("https://repo.inventivetalent.org/content/groups/public/")
}
maven { maven {
name = "OSS Sonatype Snapshots" name = "OSS Sonatype Snapshots"
url = uri("https://oss.sonatype.org/content/repositories/snapshots/") url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
@ -52,57 +48,71 @@ configurations.all {
} }
dependencies { dependencies {
compileOnly("com.github.MilkBowl:VaultAPI:1.7") { isTransitive = false } // Modules
api(project(":worldedit-core")) api(projects.worldeditCore)
api(project(":worldedit-libs:bukkit")) api(projects.worldeditLibs.bukkit)
implementation(":worldedit-adapters:") implementation(":worldedit-adapters:")
implementation("it.unimi.dsi:fastutil")
api("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT") { // Minecraft expectations
implementation(libs.fastutil)
// Platform expectations
api(libs.paper) {
exclude("junit", "junit") exclude("junit", "junit")
isTransitive = false isTransitive = false
exclude(group = "org.slf4j", module = "slf4j-api") exclude(group = "org.slf4j", module = "slf4j-api")
} }
implementation(platform("org.apache.logging.log4j:log4j-bom:2.14.1") { compileOnly(libs.spigot) {
because("Remove if #1208 has been addressed")
}
// Logging
implementation(libs.log4j)
implementation(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)")
}) }
implementation("org.apache.logging.log4j:log4j-api")
compileOnly("org.spigotmc:spigot:1.17-R0.1-SNAPSHOT") // Plugins
implementation("io.papermc:paperlib:1.0.6") compileOnly(libs.vault) { isTransitive = false }
compileOnly("com.sk89q:dummypermscompat:1.10") { compileOnly(libs.dummypermscompat) {
exclude("com.github.MilkBowl", "VaultAPI") exclude("com.github.MilkBowl", "VaultAPI")
} }
testImplementation("org.mockito:mockito-core:3.11.2") compileOnly(libs.worldguard) {
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.5") {
exclude("com.sk89q.worldedit", "worldedit-bukkit") exclude("com.sk89q.worldedit", "worldedit-bukkit")
exclude("com.sk89q.worldedit", "worldedit-core") exclude("com.sk89q.worldedit", "worldedit-core")
exclude("com.sk89q.worldedit.worldedit-libs", "bukkit") exclude("com.sk89q.worldedit.worldedit-libs", "bukkit")
exclude("com.sk89q.worldedit.worldedit-libs", "core") exclude("com.sk89q.worldedit.worldedit-libs", "core")
} }
compileOnly("net.kyori:adventure-api:4.8.1") implementation(libs.mapmanager) { isTransitive = false }
testImplementation("net.kyori:adventure-api:4.8.1") implementation(libs.griefprevention) { isTransitive = false }
testImplementation("org.checkerframework:checker-qual:3.16.0") implementation(libs.griefdefender) { isTransitive = false }
testImplementation("org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT") { isTransitive = true } implementation(libs.mcore) { isTransitive = false }
api("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT") implementation(libs.residence) { isTransitive = false }
api("org.lz4:lz4-java:1.8.0") compileOnly(libs.towny) { isTransitive = false }
api("net.jpountz:lz4-java-stream:1.0.0") { isTransitive = false } implementation(libs.protocollib) { isTransitive = false }
api("com.zaxxer:SparseBitSet:1.2") { isTransitive = false } api(libs.plotsquaredV6Bukkit) { isTransitive = false }
api("org.anarres:parallelgzip:1.0.5") { isTransitive = false }
// Third party // Third party
implementation("org.bstats:bstats-bukkit:2.2.1") implementation(libs.flowmath) {
implementation("org.bstats:bstats-base:2.2.1")
compileOnlyApi("org.inventivetalent:mapmanager:1.7.10-SNAPSHOT") { isTransitive = false }
implementation("com.github.TechFortress:GriefPrevention:16.17.1") { isTransitive = false }
implementation("com.github.bloodmc:GriefDefenderApi:920a610") { isTransitive = false }
implementation("com.flowpowered:flow-math:1.0.3") {
because("This dependency is needed by GriefDefender but not exposed transitively.") because("This dependency is needed by GriefDefender but not exposed transitively.")
isTransitive = false isTransitive = false
} }
implementation("com.massivecraft:mcore:7.0.1") { isTransitive = false } implementation(libs.paperlib)
implementation("com.bekvon.bukkit.residence:Residence:4.5._13.1") { isTransitive = false } implementation(libs.bstatsBukkit)
compileOnly("com.github.TownyAdvanced:Towny:0.97.0.17") { isTransitive = false } implementation(libs.bstatsBase)
implementation("com.comphenix.protocol:ProtocolLib:4.7.0") { isTransitive = false } implementation(libs.serverlib)
implementation("org.incendo.serverlib:ServerLib:2.2.1") api(libs.paster)
api("com.plotsquared:PlotSquared-Bukkit:6.0.6-SNAPSHOT") { isTransitive = false } api(libs.lz4Java)
api(libs.lz4JavaStream) { isTransitive = false }
api(libs.sparsebitset) { isTransitive = false }
api(libs.parallelgzip) { isTransitive = false }
compileOnly(libs.adventure)
// Tests
testImplementation(libs.mockito)
testImplementation(libs.adventure)
testImplementation(libs.checkerqual)
testImplementation(libs.paper) { isTransitive = true }
} }
tasks.named<Copy>("processResources") { tasks.named<Copy>("processResources") {

Datei anzeigen

@ -1,4 +1,4 @@
package com.sk89q.util; package com.fastasyncworldedit.util;
import com.fastasyncworldedit.bukkit.util.MinecraftVersion; import com.fastasyncworldedit.bukkit.util.MinecraftVersion;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

Datei anzeigen

@ -13,18 +13,24 @@ applyShadowConfiguration()
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit")) addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
dependencies { dependencies {
compileOnly(project(":worldedit-libs:core:ap")) // Modules
annotationProcessor(project(":worldedit-libs:core:ap")) api(projects.worldeditCore)
annotationProcessor("com.google.guava:guava:${Versions.GUAVA}") compileOnly(projects.worldeditLibs.core.ap)
api(project(":worldedit-core")) annotationProcessor(projects.worldeditLibs.core.ap)
implementation(platform("org.apache.logging.log4j:log4j-bom:2.14.1") {
// Minecraft expectations
annotationProcessor(libs.guava)
implementation(libs.guava)
implementation(libs.gson)
// Logging
implementation(libs.log4jBom) {
because("We control Log4J on this platform") because("We control Log4J on this platform")
}) }
implementation("org.apache.logging.log4j:log4j-api") implementation(libs.log4j)
implementation("org.apache.logging.log4j:log4j-core") implementation(libs.log4jCore
)
implementation("commons-cli:commons-cli:1.4") implementation("commons-cli:commons-cli:1.4")
implementation("com.google.guava:guava")
implementation("com.google.code.gson:gson")
} }
tasks.named<ShadowJar>("shadowJar") { tasks.named<ShadowJar>("shadowJar") {

Datei anzeigen

@ -12,47 +12,59 @@ applyPlatformAndCoreConfiguration()
dependencies { dependencies {
constraints { constraints {
implementation( "org.yaml:snakeyaml") { implementation( "org.yaml:snakeyaml") {
version { strictly("1.27") } version { strictly("1.28") }
because("Bukkit provides SnakeYaml") because("Bukkit provides SnakeYaml")
} }
} }
api(project(":worldedit-libs:core")) // Modules
implementation("de.schlichtherle:truezip:6.8.4") api(projects.worldeditLibs.core)
implementation("org.mozilla:rhino-runtime:1.7.13") compileOnly(projects.worldeditLibs.core.ap)
implementation("org.yaml:snakeyaml") annotationProcessor(projects.worldeditLibs.core.ap)
implementation("com.google.guava:guava")
implementation("com.google.code.findbugs:jsr305:3.0.2") // Minecraft expectations
implementation("com.google.code.gson:gson") implementation(libs.fastutil)
implementation("org.apache.logging.log4j:log4j-api:2.8.1") { implementation(libs.guava)
because("Mojang provides Log4J 2.8.1") implementation(libs.gson)
}
implementation("it.unimi.dsi:fastutil") // Platform expectations
compileOnly("net.kyori:adventure-nbt:4.8.1") implementation("org.yaml:snakeyaml")
testImplementation("net.kyori:adventure-nbt:4.7.0")
// Logging
implementation(libs.log4j) {
because("Mojang provides Log4J 2.14.1")
}
// Plugins
compileOnly(libs.redprotect)
api(libs.plotsquaredV4) { isTransitive = false }
api(libs.plotsquaredV6Core) { isTransitive = false }
val antlrVersion = "4.9.1"
antlr("org.antlr:antlr4:$antlrVersion")
implementation("org.antlr:antlr4-runtime:$antlrVersion")
implementation("com.googlecode.json-simple:json-simple:1.1.1") { isTransitive = false }
compileOnly(project(":worldedit-libs:core:ap"))
annotationProcessor(project(":worldedit-libs:core:ap"))
// ensure this is on the classpath for the AP // ensure this is on the classpath for the AP
annotationProcessor("com.google.guava:guava:21.0") annotationProcessor(libs.guava)
compileOnly("com.google.auto.value:auto-value-annotations:${Versions.AUTO_VALUE}") compileOnly(libs.autoValueAnnotations)
annotationProcessor("com.google.auto.value:auto-value:${Versions.AUTO_VALUE}") annotationProcessor(libs.autoValue)
testRuntimeOnly("org.apache.logging.log4j:log4j-core:2.8.1")
implementation("com.github.luben:zstd-jni:1.5.0-4") // Third party
compileOnly("net.fabiozumbi12:redprotect:1.9.6") implementation(libs.truezip)
api("com.github.intellectualsites.plotsquared:PlotSquared-API:4.514") { isTransitive = false } implementation(libs.findbugs)
api("com.plotsquared:PlotSquared-Core:6.0.6-SNAPSHOT") { isTransitive = false } implementation(libs.rhino)
compileOnlyApi("net.kyori:adventure-api:4.8.0") compileOnly(libs.adventure)
compileOnlyApi("net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT") compileOnlyApi(libs.adventureNbt)
api("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT") compileOnlyApi(libs.adventureMiniMessage)
compileOnly("net.jpountz:lz4-java-stream:1.0.0") { isTransitive = false } implementation(libs.zstd)
compileOnly("org.lz4:lz4-java:1.8.0") api(libs.paster)
compileOnly("com.zaxxer:SparseBitSet:1.2") compileOnly(libs.lz4Java) { isTransitive = false }
compileOnly("org.anarres:parallelgzip:1.0.5") compileOnly(libs.lz4JavaStream)
compileOnly(libs.sparsebitset)
compileOnly(libs.parallelgzip)
antlr(libs.antlr4)
implementation(libs.antlr4Runtime)
implementation(libs.jsonSimple) { isTransitive = false }
// Tests
testRuntimeOnly(libs.log4jCore)
testImplementation(libs.adventureNbt)
} }
tasks.named<Test>("test") { tasks.named<Test>("test") {

Datei anzeigen

@ -9,5 +9,5 @@ repositories {
} }
dependencies { dependencies {
"shade"("net.kyori:text-adapter-bukkit:${Versions.TEXT_EXTRAS}") "shade"(libs.adventureTextAdapter)
} }

Datei anzeigen

@ -1,6 +1,6 @@
applyLibrariesConfiguration() applyLibrariesConfiguration()
dependencies { dependencies {
"shade"("org.enginehub.piston.core-ap:annotations:${Versions.PISTON}") "shade"(libs.pistonAnnotations)
"shade"("org.enginehub.piston.core-ap:processor:${Versions.PISTON}") "shade"(libs.pistonProcessor)
} }

Datei anzeigen

@ -1,17 +1,17 @@
applyLibrariesConfiguration() applyLibrariesConfiguration()
dependencies { dependencies {
"shade"("net.kyori:text-api:3.0.4") "shade"(libs.adventureTextApi)
"shade"("net.kyori:text-serializer-gson:3.0.4") "shade"(libs.adventureTextSerializerGson)
"shade"("net.kyori:text-serializer-legacy:3.0.4") "shade"(libs.adventureTextSerializerLegacy)
"shade"("net.kyori:text-serializer-plain:3.0.4") "shade"(libs.adventureTextSerializerPlain)
"shade"("com.sk89q:jchronic:0.2.4a") { "shade"(libs.jchronic) {
exclude(group = "junit", module = "junit") exclude(group = "junit", module = "junit")
} }
"shade"("com.thoughtworks.paranamer:paranamer:2.8") "shade"(libs.paranamer)
"shade"("com.sk89q.lib:jlibnoise:1.0.0") "shade"(libs.jlibnoise)
"shade"("org.enginehub.piston:core:${Versions.PISTON}") "shade"(libs.piston)
"shade"("org.enginehub.piston.core-ap:runtime:${Versions.PISTON}") "shade"(libs.pistonRuntime)
"shade"("org.enginehub.piston:default-impl:${Versions.PISTON}") "shade"(libs.pistonImpl)
"shade"("net.kyori:adventure-nbt:4.8.1") "shade"(libs.adventureNbt)
} }