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 19c5829 commit ff613c3
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,19 @@ hangarPublish { // docs - https://docs.papermc.io/misc/hangar-publishing
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)
}
register(Platforms.VELOCITY) {
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
val versions: List<String> = (property("velocityVersion") 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)
}
platforms.register(Platforms.VELOCITY) {
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
val versions: List<String> = (property("velocityVersion") as String)
.split(",")
.map { it.trim() }
platformVersions.set(versions)
}
}
}

0 comments on commit ff613c3

Please sign in to comment.