48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
import net.minecrell.pluginyml.paper.PaperPluginDescription
|
|
|
|
group = "net.hareworks"
|
|
version = "1.1"
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.2.21"
|
|
id("de.eldoria.plugin-yml.paper") version "0.8.0"
|
|
id("com.gradleup.shadow") version "9.2.2"
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
|
|
val exposedVersion = "1.0.0-rc-3"
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib")
|
|
implementation("net.hareworks:permits-lib:1.1")
|
|
}
|
|
tasks {
|
|
withType<Jar> {
|
|
archiveBaseName.set("Kommand-Lib")
|
|
}
|
|
shadowJar {
|
|
minimize()
|
|
archiveClassifier.set("min")
|
|
}
|
|
}
|
|
|
|
paper {
|
|
main = "net.hareworks.kommand_lib.plugin.Plugin"
|
|
name = "kommand-lib"
|
|
description = "Command library"
|
|
version = getVersion().toString()
|
|
apiVersion = "1.21.10"
|
|
authors = listOf(
|
|
"Hare-K02"
|
|
)
|
|
serverDependencies {
|
|
register("permits-lib") {
|
|
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
|
|
}
|
|
}
|
|
}
|