Switch to version catalogs

- Closes #1204
- Switch to security advisory
- Move fawe-tests to fawe packages
This commit is contained in:
NotMyFault
2021-08-01 19:28:51 +02:00
parent 9f3a451ef6
commit a5e84dcfea
15 changed files with 276 additions and 134 deletions

View File

@ -30,10 +30,6 @@ repositories {
name = "ProtocolLib"
url = uri("https://repo.dmulloy2.net/nexus/repository/public/")
}
maven {
name = "Inventivetalent"
url = uri("https://repo.inventivetalent.org/content/groups/public/")
}
maven {
name = "OSS Sonatype Snapshots"
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
@ -52,57 +48,71 @@ configurations.all {
}
dependencies {
compileOnly("com.github.MilkBowl:VaultAPI:1.7") { isTransitive = false }
api(project(":worldedit-core"))
api(project(":worldedit-libs:bukkit"))
// Modules
api(projects.worldeditCore)
api(projects.worldeditLibs.bukkit)
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")
isTransitive = false
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)")
})
implementation("org.apache.logging.log4j:log4j-api")
compileOnly("org.spigotmc:spigot:1.17-R0.1-SNAPSHOT")
implementation("io.papermc:paperlib:1.0.6")
compileOnly("com.sk89q:dummypermscompat:1.10") {
}
// Plugins
compileOnly(libs.vault) { isTransitive = false }
compileOnly(libs.dummypermscompat) {
exclude("com.github.MilkBowl", "VaultAPI")
}
testImplementation("org.mockito:mockito-core:3.11.2")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.5") {
compileOnly(libs.worldguard) {
exclude("com.sk89q.worldedit", "worldedit-bukkit")
exclude("com.sk89q.worldedit", "worldedit-core")
exclude("com.sk89q.worldedit.worldedit-libs", "bukkit")
exclude("com.sk89q.worldedit.worldedit-libs", "core")
}
compileOnly("net.kyori:adventure-api:4.8.1")
testImplementation("net.kyori:adventure-api:4.8.1")
testImplementation("org.checkerframework:checker-qual:3.16.0")
testImplementation("org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT") { isTransitive = true }
api("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT")
api("org.lz4:lz4-java:1.8.0")
api("net.jpountz:lz4-java-stream:1.0.0") { isTransitive = false }
api("com.zaxxer:SparseBitSet:1.2") { isTransitive = false }
api("org.anarres:parallelgzip:1.0.5") { isTransitive = false }
implementation(libs.mapmanager) { isTransitive = false }
implementation(libs.griefprevention) { isTransitive = false }
implementation(libs.griefdefender) { isTransitive = false }
implementation(libs.mcore) { isTransitive = false }
implementation(libs.residence) { isTransitive = false }
compileOnly(libs.towny) { isTransitive = false }
implementation(libs.protocollib) { isTransitive = false }
api(libs.plotsquaredV6Bukkit) { isTransitive = false }
// Third party
implementation("org.bstats:bstats-bukkit:2.2.1")
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") {
implementation(libs.flowmath) {
because("This dependency is needed by GriefDefender but not exposed transitively.")
isTransitive = false
}
implementation("com.massivecraft:mcore:7.0.1") { isTransitive = false }
implementation("com.bekvon.bukkit.residence:Residence:4.5._13.1") { isTransitive = false }
compileOnly("com.github.TownyAdvanced:Towny:0.97.0.17") { isTransitive = false }
implementation("com.comphenix.protocol:ProtocolLib:4.7.0") { isTransitive = false }
implementation("org.incendo.serverlib:ServerLib:2.2.1")
api("com.plotsquared:PlotSquared-Bukkit:6.0.6-SNAPSHOT") { isTransitive = false }
implementation(libs.paperlib)
implementation(libs.bstatsBukkit)
implementation(libs.bstatsBase)
implementation(libs.serverlib)
api(libs.paster)
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") {

View File

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