mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-19 14:59:25 +00:00
134 lines
5.9 KiB
Diff
134 lines
5.9 KiB
Diff
--- a/purpur-api/build.gradle.kts
|
|
+++ b/purpur-api/build.gradle.kts
|
|
@@ -14,8 +_,8 @@
|
|
val adventureVersion = "4.21.0-mc1215-SNAPSHOT" // FIXME move to release asap
|
|
val adventureJavadocVersion = "4.20.0" // Fixme remove me
|
|
val bungeeCordChatVersion = "1.21-R0.2-deprecated+build.21"
|
|
-val slf4jVersion = "2.0.16"
|
|
-val log4jVersion = "2.24.1"
|
|
+val slf4jVersion = "2.0.17" // DivineMC - Bump dependencies
|
|
+val log4jVersion = "2.24.3" // DivineMC - Bump dependencies
|
|
|
|
val apiAndDocs: Configuration by configurations.creating {
|
|
attributes {
|
|
@@ -42,9 +_,9 @@
|
|
|
|
dependencies {
|
|
// api dependencies are listed transitively to API consumers
|
|
- api("com.google.guava:guava:33.3.1-jre")
|
|
- api("com.google.code.gson:gson:2.11.0")
|
|
- api("org.yaml:snakeyaml:2.2")
|
|
+ api("com.google.guava:guava:33.4.0-jre") // DivineMC - Bump dependencies
|
|
+ api("com.google.code.gson:gson:2.12.1") // DivineMC - Bump dependencies
|
|
+ api("org.yaml:snakeyaml:2.3") // DivineMC - Bump dependencies
|
|
api("org.joml:joml:1.10.8") {
|
|
isTransitive = false // https://github.com/JOML-CI/JOML/issues/352
|
|
}
|
|
@@ -52,6 +_,7 @@
|
|
api("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
|
api("org.slf4j:slf4j-api:$slf4jVersion")
|
|
api("com.mojang:brigadier:1.3.10")
|
|
+ api("io.sentry:sentry:8.4.0") // DivineMC - Pufferfish: Sentry
|
|
|
|
// Deprecate bungeecord-chat in favor of adventure
|
|
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion") {
|
|
@@ -68,9 +_,11 @@
|
|
apiAndDocs("$adventureGroup:adventure-text-serializer-plain")
|
|
apiAndDocs("$adventureGroup:adventure-text-logger-slf4j")
|
|
|
|
- api("org.apache.maven:maven-resolver-provider:3.9.6") // make API dependency for Paper Plugins
|
|
- compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.18")
|
|
- compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.18")
|
|
+ // DivineMC start - Bump dependencies
|
|
+ api("org.apache.maven:maven-resolver-provider:3.9.9") // make API dependency for Paper Plugins
|
|
+ compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.22")
|
|
+ compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.22")
|
|
+ // DivineMC end - Bump dependencies
|
|
|
|
// Annotations - Slowly migrate to jspecify
|
|
val annotations = "org.jetbrains:annotations:$annotationsVersion"
|
|
@@ -86,11 +_,13 @@
|
|
// Test dependencies
|
|
testImplementation("org.apache.commons:commons-lang3:3.17.0")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.12.2")
|
|
- testImplementation("org.hamcrest:hamcrest:2.2")
|
|
- testImplementation("org.mockito:mockito-core:5.14.1")
|
|
+ testImplementation("org.hamcrest:hamcrest:3.0") // DivineMC - Bump dependencies
|
|
+ testImplementation("org.mockito:mockito-core:5.16.1") // DivineMC - Bump dependencies
|
|
testImplementation("org.ow2.asm:asm-tree:9.8")
|
|
- mockitoAgent("org.mockito:mockito-core:5.14.1") { isTransitive = false } // configure mockito agent that is needed in newer java versions
|
|
+ mockitoAgent("org.mockito:mockito-core:5.16.1") { isTransitive = false } // configure mockito agent that is needed in newer java versions // DivineMC - Bump dependencies
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
+
|
|
+ compileOnly("org.apache.commons:commons-lang3:3.17.0") // DivineMC - Required for Bukkit
|
|
}
|
|
|
|
val generatedDir: java.nio.file.Path = rootProject.layout.projectDirectory.dir("paper-api/src/generated/java").asFile.toPath()
|
|
@@ -104,17 +_,21 @@
|
|
java {
|
|
srcDir(generatedDir)
|
|
srcDir(file("../paper-api/src/main/java"))
|
|
+ srcDir(file("../purpur-api/src/main/java")) // DivineMC - Rebrand
|
|
}
|
|
resources {
|
|
srcDir(file("../paper-api/src/main/resources"))
|
|
+ srcDir(file("../purpur-api/src/main/resources")) // DivineMC - Rebrand
|
|
}
|
|
}
|
|
test {
|
|
java {
|
|
srcDir(file("../paper-api/src/test/java"))
|
|
+ srcDir(file("../purpur-api/src/test/java")) // DivineMC - Rebrand
|
|
}
|
|
resources {
|
|
srcDir(file("../paper-api/src/test/resources"))
|
|
+ srcDir(file("../purpur-api/src/test/resources")) // DivineMC - Rebrand
|
|
}
|
|
}
|
|
}
|
|
@@ -162,6 +_,15 @@
|
|
}
|
|
}
|
|
|
|
+// DivineMC start - Hide unnecessary compilation warnings
|
|
+tasks.withType<JavaCompile> {
|
|
+ val compilerArgs = options.compilerArgs
|
|
+ compilerArgs.add("-Xlint:-module")
|
|
+ compilerArgs.add("-Xlint:-removal")
|
|
+ compilerArgs.add("-Xlint:-dep-ann")
|
|
+}
|
|
+// DivineMC end - Hide unnecessary compilation warnings
|
|
+
|
|
tasks.jar {
|
|
from(generateApiVersioningFile.map { it.outputs.files.singleFile }) {
|
|
into("META-INF/maven/${project.group}/${project.name}")
|
|
@@ -187,8 +_,8 @@
|
|
options.use()
|
|
options.isDocFilesSubDirs = true
|
|
options.links(
|
|
- "https://guava.dev/releases/33.3.1-jre/api/docs/",
|
|
- "https://javadoc.io/doc/org.yaml/snakeyaml/2.2/",
|
|
+ "https://guava.dev/releases/33.4.0-jre/api/docs/", // DivineMC - Bump dependencies
|
|
+ "https://javadoc.io/doc/org.yaml/snakeyaml/2.3/", // DivineMC - Bump dependencies
|
|
"https://javadoc.io/doc/org.jetbrains/annotations/$annotationsVersion/",
|
|
"https://javadoc.io/doc/org.joml/joml/1.10.8/",
|
|
"https://www.javadoc.io/doc/com.google.code.gson/gson/2.11.0",
|
|
@@ -202,7 +_,7 @@
|
|
"https://jd.advntr.dev/text-logger-slf4j/$adventureJavadocVersion/",
|
|
"https://javadoc.io/doc/org.slf4j/slf4j-api/$slf4jVersion/",
|
|
"https://logging.apache.org/log4j/2.x/javadoc/log4j-api/",
|
|
- "https://javadoc.io/doc/org.apache.maven.resolver/maven-resolver-api/1.7.3",
|
|
+ "https://javadoc.io/doc/org.apache.maven.resolver/maven-resolver-api/1.9.22", // DivineMC - Bump dependencies
|
|
)
|
|
options.tags("apiNote:a:API Note:")
|
|
|
|
@@ -226,6 +_,8 @@
|
|
into("build/docs/javadoc")
|
|
}
|
|
}
|
|
+
|
|
+ options.addStringOption("Xdoclint:none", "-quiet") // DivineMC - Hide unnecessary javadoc warnings
|
|
}
|
|
|
|
tasks.test {
|