chore(build): use version catalog
This commit is contained in:
parent
1b23e3a816
commit
bfdbba402f
2 changed files with 31 additions and 12 deletions
|
@ -1,12 +1,10 @@
|
|||
plugins {
|
||||
kotlin("jvm") version "2.2.10"
|
||||
id("com.gradleup.shadow") version "9.1.0"
|
||||
id("io.papermc.paperweight.userdev") version "2.0.0-beta.18"
|
||||
id("xyz.jpenilla.run-paper") version "2.3.0"
|
||||
alias(libs.plugins.kotlin)
|
||||
alias(libs.plugins.shadow)
|
||||
alias(libs.plugins.paperweight)
|
||||
alias(libs.plugins.run.paper)
|
||||
}
|
||||
|
||||
val kotlin_version = "2.2.10"
|
||||
|
||||
group = "xyz.ineanto.dragon"
|
||||
version = "1.1"
|
||||
|
||||
|
@ -22,15 +20,15 @@ dependencies {
|
|||
paperweight.paperDevBundle("1.21.8-R0.1-SNAPSHOT")
|
||||
|
||||
// Inventory UI
|
||||
compileOnly("xyz.xenondevs.invui:invui:1.46")
|
||||
compileOnly("xyz.xenondevs.invui:invui-kotlin:1.46")
|
||||
compileOnly(libs.invui)
|
||||
implementation(libs.invui.kotlin)
|
||||
|
||||
// Resource Pack (unused)
|
||||
implementation("ru.brikster:glyphs-api:1.1.0")
|
||||
implementation("ru.brikster:glyphs-resources:1.1.0")
|
||||
implementation(libs.glyphs.api)
|
||||
implementation(libs.glyphs.resources)
|
||||
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
||||
implementation("commons-io:commons-io:2.14.0")
|
||||
implementation(libs.kotlin.stdlib)
|
||||
implementation(libs.commonsio)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
|
|
21
gradle/libs.versions.toml
Normal file
21
gradle/libs.versions.toml
Normal file
|
@ -0,0 +1,21 @@
|
|||
[versions]
|
||||
kotlin = "2.2.10"
|
||||
invui = "1.46"
|
||||
glyphs = "1.1.0"
|
||||
|
||||
[libraries]
|
||||
kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
|
||||
|
||||
invui = { group = "xyz.xenondevs.invui", name = "invui", version.ref = "invui" }
|
||||
invui-kotlin = { group = "xyz.xenondevs.invui", name = "invui-kotlin", version.ref = "invui" }
|
||||
|
||||
glyphs-api = { group = "ru.brikster", name = "glyphs-api", version.ref = "glyphs" }
|
||||
glyphs-resources = { group = "ru.brikster", name = "glyphs-resources", version.ref = "glyphs" }
|
||||
|
||||
commonsio = { group = "commons-io", name = "commons-io", version = "2.14.0" }
|
||||
|
||||
[plugins]
|
||||
shadow = { id = "com.gradleup.shadow", version = "9.1.0" }
|
||||
paperweight = { id = "io.papermc.paperweight.userdev", version = "2.0.0-beta.18" }
|
||||
run-paper = { id = "xyz.jpenilla.run-paper", version = "3.0.0-beta.1" }
|
||||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
Loading…
Add table
Add a link
Reference in a new issue