Skip to content

Commit

Permalink
Merge pull request #101 from GiganticMinecraft/support-1.18.2-paper_api
Browse files Browse the repository at this point in the history
build: Support Paper API (1.18.2) and JDK 17
  • Loading branch information
m1sk9 authored Jan 25, 2025
2 parents d2d7b34 + ecd1e5d commit 7c97d67
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ group = "com.github.sigureruri"
version = semver.version

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType(JavaCompile::class) {
Expand All @@ -22,12 +22,12 @@ tasks.withType(JavaCompile::class) {

repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
}

dependencies {
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.21")
}

Expand All @@ -41,4 +41,8 @@ tasks.getByName<ProcessResources>("processResources") {
tasks.getByName<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveBaseName.set(rootProject.name)
archiveClassifier.set("")
}
}

kotlin {
jvmToolchain(17)
}

0 comments on commit 7c97d67

Please sign in to comment.