Skip to content

Commit

Permalink
build: replace deprecated builddir usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed May 8, 2024
1 parent 0349811 commit 05d1ae1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {
`java-library`
alias(libs.plugins.lombok)
alias(libs.plugins.runpaper)
// alias(libs.plugins.userdev)
alias(libs.plugins.shadow)
// Plugins for publishing on platforms
alias(libs.plugins.hangar)
Expand All @@ -30,7 +29,6 @@ repositories {
}

dependencies {
// paperweight.paperDevBundle(libs.versions.minecraft)
compileOnly(libs.spigot)

library(libs.jedis)
Expand Down Expand Up @@ -75,9 +73,6 @@ tasks {
javadoc {
options.encoding = Charsets.UTF_8.name()
}
assemble {
// dependsOn(reobfJar)
}
jar {
enabled = false
}
Expand All @@ -92,7 +87,6 @@ tasks {
exclude("META-INF/versions/**")
exclude("META-INF/**.kotlin_module")
}
// minimize()
}
runServer {
minecraftVersion("1.20.4")
Expand All @@ -113,7 +107,7 @@ modrinth {

syncBodyFrom.set(rootProject.file("README.md").readText())

uploadFile.set(buildDir.resolve("libs").resolve("FairyChat-${rootProject.version}.jar"))
uploadFile.set(layout.buildDirectory.file("libs/FairyChat-${rootProject.version}.jar"))
gameVersions.addAll(versions)
loaders.addAll(listOf("paper", "purpur", "folia"))
changelog.set(System.getenv("MODRINTH_CHANGELOG"))
Expand All @@ -134,7 +128,7 @@ hangarPublish {
// register platforms
platforms {
register(Platforms.PAPER) {
jar.set(buildDir.resolve("libs").resolve("FairyChat-${rootProject.version}.jar"))
jar.set(layout.buildDirectory.file("libs/FairyChat-${rootProject.version}.jar"))
platformVersions.set(versions)
dependencies {
hangar("MiniPlaceholders") {
Expand Down

0 comments on commit 05d1ae1

Please sign in to comment.