Skip to content

Commit

Permalink
build: remove plugin-yml plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Jun 9, 2023
1 parent 84c6489 commit d8522f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 29 deletions.
32 changes: 3 additions & 29 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.5.5"
id("net.minecrell.plugin-yml.bukkit") version "0.5.3"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

Expand Down Expand Up @@ -44,39 +43,14 @@ tasks {
options.release.set(17)
}

create("appendFoliaSupported") {
dependsOn(generateBukkitPluginDescription)

doLast {
val task = generateBukkitPluginDescription.get()
val file = task.outputDirectory.file(task.fileName)
file.get().asFile.appendText("folia-supported: true" + System.lineSeparator(), Charsets.UTF_8)
}
}

processResources {
dependsOn("appendFoliaSupported")
filteringCharset = Charsets.UTF_8.name()
filesMatching(listOf("plugin.yml")) {
expand("projectVersion" to fullVersion)
}
}

shadowJar {
minimize()
relocate("com.github.siroshun09.translationloader", "com.github.siroshun09.biomefinder.libs.translationloader")
}
}

bukkit {
name = "BiomeFinder"
main = "com.github.siroshun09.biomefinder.BiomeFinderPlugin"
version = fullVersion
apiVersion = "1.20"
author = "Siroshun09"
commands {
register("findbiomes") {
aliases = listOf("fb")
}
register("generateseed") {
aliases = listOf("gs")
}
}
}
13 changes: 13 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: BiomeFinder
version: "${projectVersion}"
main: com.github.siroshun09.biomefinder.BiomeFinderPlugin
author: Siroshun09
api-version: "1.20"
folia-supported: true
commands:
findbiomes:
aliases:
- fb
generateseed:
aliases:
- gs

0 comments on commit d8522f0

Please sign in to comment.