54 lines
No EOL
1.6 KiB
Kotlin
54 lines
No EOL
1.6 KiB
Kotlin
plugins {
|
|
id("java")
|
|
id("com.gradleup.shadow") version "9.2.0"
|
|
id("xyz.jpenilla.run-paper") version "2.3.1"
|
|
id("de.kentoj.scrow.scrow-repository")
|
|
id("de.kentoj.scrow.base-dependencies")
|
|
id("de.kentoj.scrow.database")
|
|
}
|
|
|
|
group = "de.kentoj.scrow"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
|
|
maven("https://repo.papermc.io/repository/maven-public/") {
|
|
name = "papermc"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.11-rc3-R0.1-SNAPSHOT")
|
|
implementation(project(":core-bukkit-api"))
|
|
|
|
// https://mvnrepository.com/artifact/org.mongodb/bson
|
|
implementation("org.mongodb:bson:5.8.0")
|
|
// https://mvnrepository.com/artifact/io.nats/jnats
|
|
implementation("io.nats:jnats:2.25.2")
|
|
// http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-core
|
|
implementation("de.kentoj.scrow:kencommandapi-core:0.28")
|
|
// http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-bukkit
|
|
implementation("de.kentoj.scrow:kencommandapi-bukkit:0.28")
|
|
}
|
|
|
|
tasks {
|
|
runServer {
|
|
minecraftVersion("1.21.11")
|
|
downloadPlugins {
|
|
url("https://hangarcdn.papermc.io/plugins/ViaVersion/ViaVersion/versions/5.7.1/PAPER/ViaVersion-5.7.1.jar")
|
|
url("https://hangarcdn.papermc.io/plugins/ViaVersion/ViaBackwards/versions/5.7.1/PAPER/ViaBackwards-5.7.1.jar")
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.processResources {
|
|
filesMatching("plugin.yml") {
|
|
expand(
|
|
mapOf("version" to project.version.toString())
|
|
)
|
|
}
|
|
}
|
|
|
|
tasks.build {
|
|
dependsOn("shadowJar")
|
|
} |