Skip to content

Commit

Permalink
feat: Minecraft 1.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Apr 28, 2024
1 parent 1fb9cd2 commit 9fb277c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
25 changes: 11 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.5.15"
id("io.papermc.paperweight.userdev") version "1.6.2"
}

group = "com.github.siroshun09.biomefinder"
version = "1.9"
val mcVersion = "1.20.4"
val mcVersion = "1.20.5"
val fullVersion = "${version}-mc${mcVersion}"

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

repositories {
Expand All @@ -21,24 +21,21 @@ dependencies {
paperweight.paperDevBundle("$mcVersion-R0.1-SNAPSHOT")
}

tasks {
build {
dependsOn(reobfJar)
doLast {
val jarFile = project.layout.buildDirectory.dir("libs").get().file("BiomeFinder-${fullVersion}.jar").asFile
jarFile.delete()
reobfJar.flatMap { it.outputJar.asFile }.get().copyTo(jarFile)
}
}
paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION

tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
options.release.set(21)
}

processResources {
filesMatching(listOf("plugin.yml")) {
expand("projectVersion" to fullVersion)
}
}

jar {
archiveFileName = "BiomeFinder-${fullVersion}.jar"
}
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: BiomeFinder
version: "${projectVersion}"
main: com.github.siroshun09.biomefinder.BiomeFinderPlugin
author: Siroshun09
api-version: "1.20"
api-version: "1.20.5"
folia-supported: true
commands:
findbiomes:
Expand Down

0 comments on commit 9fb277c

Please sign in to comment.