diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 5feb81474b..d4895e6af7 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -6,19 +6,19 @@ plugins { } repositories { - mavenCentral() - gradlePluginPortal() - maven { - name = "EngineHub" - url = uri("https://maven.enginehub.org/repo/") - } maven { name = "PaperMC" - url = uri("https://repo.papermc.io/repository/maven-public/") + url = uri("https://papermc.io/repo/repository/maven-public/") content { includeGroupByRegex("io\\.papermc\\..*") } } + mavenCentral() + gradlePluginPortal() + maven { + name = "EngineHub Repository" + url = uri("https://maven.enginehub.org/repo/") + } } val properties = Properties().also { props -> diff --git a/buildSrc/src/main/kotlin/CommonConfig.kt b/buildSrc/src/main/kotlin/CommonConfig.kt index d60020a0aa..f53baf5cd7 100644 --- a/buildSrc/src/main/kotlin/CommonConfig.kt +++ b/buildSrc/src/main/kotlin/CommonConfig.kt @@ -18,6 +18,9 @@ fun Project.applyCommonConfiguration() { maven { name = "OSS Sonatype Snapshots" url = uri("https://oss.sonatype.org/content/repositories/snapshots/") + mavenContent { + snapshotsOnly() + } } maven { name = "Athion" diff --git a/buildSrc/src/main/kotlin/CommonJavaConfig.kt b/buildSrc/src/main/kotlin/CommonJavaConfig.kt index 5c0dec9916..30bc492940 100644 --- a/buildSrc/src/main/kotlin/CommonJavaConfig.kt +++ b/buildSrc/src/main/kotlin/CommonJavaConfig.kt @@ -50,6 +50,7 @@ fun Project.applyCommonJavaConfiguration(sourcesJar: Boolean, banSlf4j: Boolean // Java 8 turns on doclint which we fail tasks.withType().configureEach { + options.encoding = "UTF-8" (options as StandardJavadocDocletOptions).apply { addStringOption("Xdoclint:none", "-quiet") tags( @@ -57,7 +58,6 @@ fun Project.applyCommonJavaConfiguration(sourcesJar: Boolean, banSlf4j: Boolean "implSpec:a:Implementation Requirements:", "implNote:a:Implementation Note:" ) - options.encoding = "UTF-8" links( "https://jd.adventure.kyori.net/api/latest/", "https://logging.apache.org/log4j/2.x/log4j-api/apidocs/", diff --git a/buildSrc/src/main/kotlin/LibsConfig.kt b/buildSrc/src/main/kotlin/LibsConfig.kt index 26bc8dd87b..274a3b0a0f 100644 --- a/buildSrc/src/main/kotlin/LibsConfig.kt +++ b/buildSrc/src/main/kotlin/LibsConfig.kt @@ -41,7 +41,6 @@ fun Project.applyLibrariesConfiguration() { val relocations = mapOf( "net.kyori.text" to "com.sk89q.worldedit.util.formatting.text", "net.kyori.minecraft" to "com.sk89q.worldedit.util.kyori", - "net.kyori.adventure.nbt" to "com.sk89q.worldedit.util.nbt" ) @@ -49,13 +48,20 @@ fun Project.applyLibrariesConfiguration() { configurations = listOf(project.configurations["shade"]) archiveClassifier.set("") + // Yeet module-info's + exclude("module-info.class") + dependencies { exclude(dependency("com.google.guava:guava")) exclude(dependency("com.google.code.gson:gson")) exclude(dependency("com.google.errorprone:error_prone_annotations")) exclude(dependency("org.checkerframework:checker-qual")) + exclude(dependency("org.jetbrains:annotations")) exclude(dependency("org.apache.logging.log4j:log4j-api")) exclude(dependency("com.google.code.findbugs:jsr305")) + exclude { + it.moduleGroup == "org.jetbrains.kotlin" + } } relocations.forEach { (from, to) -> @@ -85,6 +91,10 @@ fun Project.applyLibrariesConfiguration() { from({ altConfigFiles("sources") }) + + // Yeet module-info's + exclude("module-info.java") + relocations.forEach { (from, to) -> val filePattern = Regex("(.*)${from.replace('.', '/')}((?:/|$).*)") val textPattern = Regex.fromLiteral(from) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3679184e7c..e999136d08 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -31,6 +31,8 @@ jlibnoise = "1.0.0" jchronic = "0.2.4a" lz4-java = "1.8.0" lz4-stream = "1.0.0" +lin-bus-bom = "0.1.0-SNAPSHOT" + ## Internal adventure-text-minimessage = "4.2.0-SNAPSHOT" text-adapter = "3.0.6" diff --git a/worldedit-bukkit/build.gradle.kts b/worldedit-bukkit/build.gradle.kts index 90122c4fa8..95bb5225ae 100644 --- a/worldedit-bukkit/build.gradle.kts +++ b/worldedit-bukkit/build.gradle.kts @@ -14,7 +14,7 @@ applyShadowConfiguration() repositories { maven { name = "PaperMC" - url = uri("https://repo.papermc.io/repository/maven-public/") + url = uri("https://papermc.io/repo/repository/maven-public/") } maven { name = "EngineHub" diff --git a/worldedit-core/build.gradle.kts b/worldedit-core/build.gradle.kts index a5d40bb135..afbd9c8c68 100644 --- a/worldedit-core/build.gradle.kts +++ b/worldedit-core/build.gradle.kts @@ -27,6 +27,19 @@ dependencies { implementation("com.google.guava:guava") implementation("com.google.code.gson:gson") + implementation(libs.jchronic) { + exclude(group = "junit", module = "junit") + } + implementation("com.thoughtworks.paranamer:paranamer:2.6") + implementation(libs.jlibnoise) + api(platform("org.enginehub.lin-bus:lin-bus-bom:0.1.0-SNAPSHOT")) + api("org.enginehub.lin-bus:lin-bus-tree:0.1.0-SNAPSHOT") { + exclude(group = "org.jetbrains", module = "annotations") + } + api("org.enginehub.lin-bus.format:lin-bus-format-snbt:0.1.0-SNAPSHOT") { + exclude(group = "org.jetbrains", module = "annotations") + } + // Platform expectations implementation("org.yaml:snakeyaml") diff --git a/worldedit-libs/core/build.gradle.kts b/worldedit-libs/core/build.gradle.kts index c5eb108876..7646ae941b 100644 --- a/worldedit-libs/core/build.gradle.kts +++ b/worldedit-libs/core/build.gradle.kts @@ -5,12 +5,12 @@ dependencies { "shade"(libs.adventureTextSerializerGson) "shade"(libs.adventureTextSerializerLegacy) "shade"(libs.adventureTextSerializerPlain) - "shade"(libs.jchronic) { - exclude(group = "junit", module = "junit") - } - "shade"(libs.jlibnoise) "shade"(libs.piston) "shade"(libs.pistonRuntime) "shade"(libs.pistonImpl) - "shade"(libs.adventureNbt) + // Linbus + "shade"("org.enginehub.lin-bus:lin-bus-common:0.1.0-SNAPSHOT") + "shade"("org.enginehub.lin-bus:lin-bus-stream:0.1.0-SNAPSHOT") + "shade"("org.enginehub.lin-bus:lin-bus-tree:0.1.0-SNAPSHOT") + "shade"("org.enginehub.lin-bus.format:lin-bus-format-snbt:0.1.0-SNAPSHOT") }