Skip to content

Commit

Permalink
build: separate versions in version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed May 17, 2024
1 parent 7b5c87c commit 86dd610
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
compileOnly(libs.paper)

library(libs.bundles.cloud)
paperLibrary(libs.configlib)
library(libs.configlib)
library(libs.guice)
library(libs.classgraph)
compileOnly(libs.invui)
Expand Down
45 changes: 30 additions & 15 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
[versions]
minecraft = "1.20.4-R0.1-SNAPSHOT"
minecraftserver = "1.20.4"
googlejavaformat = "1.17.0"

# plugins
userdev = "1.7.1"
runpaper = "2.3.0"
shadow = "8.1.1"
lombok = "8.6"
paperyml = "0.6.0"
spotless = "6.25.0"

# libraries
cloud-paper = "2.0.0-beta.5"
cloud = "2.0.0-beta.4"
configlib = "4.5.0"
guice = "7.0.0"
classgraph = "4.8.172"
paper = "1.20.4-R0.1-SNAPSHOT"
invui = "1.30"

[plugins]
userdev = { id = "io.papermc.paperweight.userdev", version = "1.7.1" }
runpaper = { id = "xyz.jpenilla.run-paper", version = "2.3.0" }
shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
lombok = { id = "io.freefair.lombok", version = "8.6" }
paperyml = { id = "net.minecrell.plugin-yml.paper", version = "0.6.0" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
userdev = { id = "io.papermc.paperweight.userdev", version.ref = "userdev" }
runpaper = { id = "xyz.jpenilla.run-paper", version.ref = "runpaper" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
lombok = { id = "io.freefair.lombok", version.ref = "lombok" }
paperyml = { id = "net.minecrell.plugin-yml.paper", version.ref = "paperyml" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }

[libraries]
annotations = { module = "org.jetbrains:annotations", version = "24.1.0" }
commandframework = { module = "cloud.commandframework:cloud-paper", version = "1.8.4" }
cloud-paper = { module = "org.incendo:cloud-paper", version.ref = "cloud" }
cloud-paper = { module = "org.incendo:cloud-paper", version.ref = "cloud-paper" }
cloud-annotations = { module = "org.incendo:cloud-annotations", version.ref = "cloud" }
cloud-minecraft-extras = { module = "org.incendo:cloud-minecraft-extras", version.ref = "cloud" }
configlib = { module = "de.exlll:configlib-paper", version = "4.5.0" }
guice = { module = "com.google.inject:guice", version = "7.0.0" }
classgraph = { module = "io.github.classgraph:classgraph", version = "4.8.172" }
paper = { module = "io.papermc.paper:paper-api", version.ref = "minecraft" }
invui = { module = "xyz.xenondevs.invui:invui", version = "1.27" }
configlib = { module = "de.exlll:configlib-paper", version.ref = "configlib" }
guice = { module = "com.google.inject:guice", version.ref = "guice" }
classgraph = { module = "io.github.classgraph:classgraph", version.ref = "classgraph" }
paper = { module = "io.papermc.paper:paper-api", version.ref = "paper" }
invui = { module = "xyz.xenondevs.invui:invui", version.ref = "invui" }

[bundles]
cloud = ["cloud-paper", "cloud-annotations", "cloud-minecraft-extras"]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void classloader(@NotNull PluginClasspathBuilder classpathBuilder) {
.build());
resolver.addDependency(
new Dependency(
new DefaultArtifact("xyz.xenondevs.invui", "invui", null, "pom", "1.25"), null));
new DefaultArtifact("xyz.xenondevs.invui", "invui", null, "pom", "1.30"), null));
classpathBuilder.addLibrary(resolver);
}

Expand Down

0 comments on commit 86dd610

Please sign in to comment.