diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index af37b85..2afaddf 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,30 +4,12 @@
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -178,7 +160,7 @@
"RunOnceActivity.git.unshallow": "true",
"git-widget-placeholder": "master",
"kotlin-language-version-configured": "true",
- "last_opened_file_path": "/home/a/src/scrow/KenCommandAPI/kencommandapi-core/src/test/java/a",
+ "last_opened_file_path": "/home/a/src/scrow/KenCommandAPI/gradle",
"project.structure.last.edited": "Modules",
"project.structure.proportion": "0.15",
"project.structure.side.proportion": "0.6268199",
@@ -194,6 +176,7 @@
+
@@ -595,9 +578,9 @@
-
-
+
+
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
new file mode 100644
index 0000000..432415a
--- /dev/null
+++ b/gradle/libs.versions.toml
@@ -0,0 +1,24 @@
+[versions]
+shadow = "9.2.0"
+run-paper = "2.3.1"
+papermc = "1.21.11-rc3-R0.1-SNAPSHOT"
+velocity = "3.5.0-SNAPSHOT"
+adventure = "5.2.0"
+scrow-commandapi = "0.33-SNAPSHOT"
+
+[plugins]
+shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
+runpaper = { id = "xyz.jpenilla.run-paper", version.ref = "run-paper" }
+scrow-basedependencies = { id = "scrow.base-dependencies" }
+scrow-javalibrary = { id = "scrow.java-library" }
+
+[libraries]
+# https://docs.papermc.io/paper/dev/project-setup/
+papermc-api = { module = "io.papermc.paper:paper-api", version.ref = "papermc" }
+# https://docs.papermc.io/velocity/dev/creating-your-first-plugin/
+velocity-api = { module = "com.velocitypowered:velocity-api", version.ref = "velocity" }
+adventure-api = { module = "net.kyori:adventure-api", version.ref = "adventure" }
+adventure-minimessage = { module = "net.kyori:adventure-text-minimessage", version.ref = "adventure" }
+
+# http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-core
+scrow-commandapi-core = { module = "de.kentoj.scrow:kencommandapi-core", version.ref = "scrow-commandapi" }
\ No newline at end of file
diff --git a/kencommandapi-bukkit/build.gradle.kts b/kencommandapi-bukkit/build.gradle.kts
index 6c3efb3..59e8f2a 100644
--- a/kencommandapi-bukkit/build.gradle.kts
+++ b/kencommandapi-bukkit/build.gradle.kts
@@ -7,7 +7,7 @@ plugins {
dependencies {
api(project(":kencommandapi-core"))
- compileOnly("io.papermc.paper:paper-api:1.21.11-rc3-R0.1-SNAPSHOT")
+ compileOnly(libs.papermc.api)
}
publishing {
diff --git a/kencommandapi-core/build.gradle.kts b/kencommandapi-core/build.gradle.kts
index b88b7c4..9b1b1a2 100644
--- a/kencommandapi-core/build.gradle.kts
+++ b/kencommandapi-core/build.gradle.kts
@@ -16,9 +16,9 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-engine:6.1.1")
// https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher
testImplementation("org.junit.platform:junit-platform-launcher:6.1.1")
- testImplementation("net.kyori:adventure-api:5.2.0")
+ testImplementation(libs.adventure.api)
- compileOnly("net.kyori:adventure-api:5.2.0")
+ compileOnly(libs.adventure.api)
}
tasks.test {
diff --git a/kencommandapi-velocity/build.gradle.kts b/kencommandapi-velocity/build.gradle.kts
index ef25230..905203b 100644
--- a/kencommandapi-velocity/build.gradle.kts
+++ b/kencommandapi-velocity/build.gradle.kts
@@ -5,17 +5,9 @@ plugins {
id("scrow.java-library")
}
-repositories {
- maven {
- name = "papermc"
- url = uri("https://repo.papermc.io/repository/maven-public/")
- }
-}
-
dependencies {
- // https://docs.papermc.io/velocity/dev/creating-your-first-plugin/
- annotationProcessor("com.velocitypowered:velocity-api:3.5.0-SNAPSHOT")
- compileOnly("com.velocitypowered:velocity-api:3.5.0-SNAPSHOT")
+ annotationProcessor(libs.velocity.api)
+ compileOnly(libs.velocity.api)
api(project(":kencommandapi-core"))
}