Skip to content

Commit

Permalink
build(paper): update paper version to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
jonakls committed Sep 14, 2024
1 parent ffafb53 commit d578ab6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
java
id("com.github.johnrengelman.shadow") version ("8.1.1")
id("io.papermc.paperweight.userdev") version ("1.7.1")
id("io.github.goooler.shadow") version ("8.1.8")
id("io.papermc.paperweight.userdev") version "1.7.2"
}

repositories {
Expand Down Expand Up @@ -44,7 +44,7 @@ repositories {
}
maven {
name = "jeff-media-repo"
url = uri("https://hub.jeff-media.com/nexus/repository/jeff-media-public/")
url = uri("https://repo.jeff-media.com/public/")
}
maven {
name = "skript-repo"
Expand Down Expand Up @@ -75,7 +75,7 @@ repositories {

dependencies {
//compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")

implementation("org.bstats:bstats-bukkit:3.0.0")
compileOnly("com.github.puregero:multilib:1.1.5")
Expand All @@ -89,7 +89,7 @@ dependencies {
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.7-SNAPSHOT")
compileOnly("com.palmergames.bukkit.towny:towny:0.98.1.12")
compileOnly("de.jeff_media:ChestSortAPI:13.0.0-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.1")
//compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.griefdefender:api:2.0.0-20210822.184639-9")
compileOnly("com.github.SkriptLang:Skript:2.6.1")
compileOnly("com.github.xerial:sqlite-jdbc:3.36.0.3")
Expand All @@ -102,9 +102,11 @@ dependencies {
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION

tasks {
processResources {
filter<org.apache.tools.ant.filters.ReplaceTokens>(
Expand All @@ -116,11 +118,11 @@ tasks {
}

compileJava {
options.encoding = "UTF-8"
options.release = 21
}

assemble {
dependsOn(reobfJar)
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
}

shadowJar {
Expand Down
7 changes: 2 additions & 5 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
rootProject.name = "graves"

pluginManagement {
repositories {
gradlePluginPortal()
maven("https://repo.papermc.io/repository/maven-public/")
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

0 comments on commit d578ab6

Please sign in to comment.