Version Catalogs initial POC
todo - needs release build of multi-version-catalog - need to go through the patches and migrate all the dependencies & versions
This commit is contained in:
parent
ed753d34d2
commit
e5e7c12af8
3 changed files with 72 additions and 0 deletions
39
patches/api/0449-Version-Catalog-POC.patch
Normal file
39
patches/api/0449-Version-Catalog-POC.patch
Normal file
|
@ -0,0 +1,39 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
|
||||
Date: Sat, 25 Nov 2023 16:01:27 -0800
|
||||
Subject: [PATCH] Version Catalog POC
|
||||
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index e827ee211e3c65dc68ac5867fd8476639df63645..76153b68ef7a6cfbea5350229362d52122bf8c35 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -11,7 +11,7 @@ java {
|
||||
|
||||
val annotationsVersion = "24.0.1"
|
||||
val bungeeCordChatVersion = "1.20-R0.1"
|
||||
-val adventureVersion = "4.14.0"
|
||||
+val adventureVersion = libs.versions.adventure.get()
|
||||
val slf4jVersion = "1.8.0-beta4"
|
||||
val log4jVersion = "2.17.1"
|
||||
val apiAndDocs: Configuration by configurations.creating {
|
||||
@@ -32,7 +32,7 @@ dependencies {
|
||||
api("com.google.code.gson:gson:2.10.1")
|
||||
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion-deprecated+build.14") // Paper
|
||||
api("org.yaml:snakeyaml:2.2")
|
||||
- api("org.joml:joml:1.10.5")
|
||||
+ api(libs.joml)
|
||||
// Paper start
|
||||
api("com.googlecode.json-simple:json-simple:1.1.1") {
|
||||
isTransitive = false // includes junit
|
||||
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..791bbc8d0d4b277a637c665b20a507e1d44f75f8
|
||||
--- /dev/null
|
||||
+++ b/gradle/libs.versions.toml
|
||||
@@ -0,0 +1,5 @@
|
||||
+[versions]
|
||||
+adventure = "4.14.0"
|
||||
+
|
||||
+[libraries]
|
||||
+joml = "org.joml:joml:1.10.5"
|
27
patches/server/1053-Version-Catalog-POC.patch
Normal file
27
patches/server/1053-Version-Catalog-POC.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
|
||||
Date: Sat, 25 Nov 2023 16:01:16 -0800
|
||||
Subject: [PATCH] Version Catalog POC
|
||||
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index 79beac737c17412913983614bd478d33e3c6ed58..0dec0afa97f9d4a8d0adf2c33589d137dd6a3ebb 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -18,7 +18,7 @@ dependencies {
|
||||
// Paper start
|
||||
implementation("org.jline:jline-terminal-jansi:3.21.0")
|
||||
implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
||||
- implementation("net.kyori:adventure-text-serializer-ansi:4.14.0") // Keep in sync with adventureVersion from Paper-API build file
|
||||
+ implementation(libs.adventure.text.serializer.ansi)
|
||||
implementation("net.kyori:ansi:1.0.3") // Manually bump beyond above transitive dep
|
||||
/*
|
||||
Required to add the missing Log4j2Plugins.dat file from log4j-core
|
||||
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..3de7b4066dfd57f8074fecf7038393a2c7398059
|
||||
--- /dev/null
|
||||
+++ b/gradle/libs.versions.toml
|
||||
@@ -0,0 +1,2 @@
|
||||
+[libraries]
|
||||
+adventure-text-serializer-ansi = { module = "net.kyori:adventure-text-serializer-ansi", version.ref = "adventure" }
|
|
@ -9,6 +9,7 @@ pluginManagement {
|
|||
|
||||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
|
||||
id("io.papermc.multi-version-catalog") version "1.0.0-SNAPSHOT"
|
||||
}
|
||||
|
||||
if (!file(".git").exists()) {
|
||||
|
@ -39,6 +40,11 @@ for (name in listOf("Paper-API", "Paper-Server", "Paper-MojangAPI")) {
|
|||
findProject(":$projName")!!.projectDir = file(name)
|
||||
}
|
||||
|
||||
multiVersionCatalog.fromFiles(
|
||||
"libs",
|
||||
rootProject.children.map { it.projectDir.resolve("gradle/libs.versions.toml") }
|
||||
)
|
||||
|
||||
mapOf("test-plugin.settings.gradle.kts" to """
|
||||
// Uncomment to enable the test plugin module
|
||||
// include(":test-plugin")
|
||||
|
|
Loading…
Reference in a new issue