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.30") // http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-bukkit implementation("de.kentoj.scrow:kencommandapi-bukkit:0.30") // https://mvnrepository.com/artifact/org.postgresql/postgresql implementation("org.postgresql:postgresql:42.7.12") } 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") }