Add Lamp command framework
All checks were successful
publish / build (push) Successful in 3m17s

This commit is contained in:
unurled 2024-10-18 17:43:00 +02:00
parent 714a3ca0fb
commit f6763449f1
Signed by: unurled
GPG key ID: EFC5F5E709B47DDD
2 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,5 @@
import groovy.json.JsonGenerator.Options
plugins {
`java-library`
`maven-publish`
@ -7,9 +9,10 @@ plugins {
}
group = "me.unurled"
version = "0.1.1"
version = "0.1.2"
val mcVersion = "1.21.1-R0.1-SNAPSHOT"
val lampVersion = "4.0.0-beta.17"
val javaVersion = 21
@ -19,6 +22,10 @@ repositories {
dependencies {
paperweight.paperDevBundle(mcVersion)
implementation("io.github.revxrsal:lamp.common:${lampVersion}")
implementation("io.github.revxrsal:lamp.bukkit:${lampVersion}")
implementation("io.github.revxrsal:lamp.brigadier:${lampVersion}")
implementation("io.github.revxrsal:lamp.paper:${lampVersion}")
}
java {
@ -39,6 +46,8 @@ tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.compilerArgs.add("-parameters")
if (javaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release.set(javaVersion)
}