Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed May 12, 2024
1 parent 77641be commit c8921e6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,15 @@ val isRelease: Boolean = !versionString.contains("-pre")
hangarPublish { // docs - https://docs.papermc.io/misc/hangar-publishing
publications.register("plugin") {
id.set("Worlds")
version.set(project.version as String)
version.set(versionString)
channel.set(if (isRelease) "Release" else "Snapshot")
apiKey.set(System.getenv("HANGAR_API_TOKEN"))
platforms {
register(Platforms.PAPER) {
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
val versions: List<String> = (property("paperVersion") as String)
.split(",")
.map { it.trim() }
platformVersions.set(versions)
}
platforms.register(Platforms.PAPER) {
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
val versions: List<String> = (property("paperVersion") as String)
.split(",")
.map { it.trim() }
platformVersions.set(versions)
}
}
}

0 comments on commit c8921e6

Please sign in to comment.