
* Use new papermc repo url * Update gradle plugins * Update paper dependencies to 1.19 and bump version * Package renames * Update to kotlin 1.7.0 * Update kotlinx-serialization-json to 1.3.3 * Update kotlinx-coroutines to 1.6.2 * Correct version bump * Update versions in gradle_example.md * update some guide stuff Co-authored-by: l4zs <business@l4zs.de>
959 B
959 B
An example for a Gradle build script of a project using KSpigot would be:
(please note that the version in the following examples might be outdated)
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.0"
id("io.papermc.paperweight.userdev") version "1.3.6"
}
group = "your.group"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
paperDevBundle("1.19-R0.1-SNAPSHOT")
implementation("net.axay:kspigot:1.19.0")
}
tasks {
build {
dependsOn(reobfJar)
}
compileJava {
options.encoding = "UTF-8"
options.release.set(17)
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
}
settings.gradle.kts
rootProject.name = "projectname"
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://papermc.io/repo/repository/maven-public/")
}
}