Skip to content

Commit

Permalink
Merge pull request #5 from TheNextLvl-net/1.21
Browse files Browse the repository at this point in the history
update to 1.21
  • Loading branch information
NonSwag authored Jun 28, 2024
2 parents 5ccf5f9 + d846382 commit 5782904
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
paperVersion=1.20.6
gameVersions=1.21
7 changes: 4 additions & 3 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ tasks.shadowJar {
val versionString: String = project.version as String
val isRelease: Boolean = !versionString.contains("-pre")

val versions: List<String> = (property("gameVersions") as String)
.split(",")
.map { it.trim() }

hangarPublish { // docs - https://docs.papermc.io/misc/hangar-publishing
publications.register("plugin") {
id.set("HologramAPI")
Expand All @@ -63,9 +67,6 @@ hangarPublish { // docs - https://docs.papermc.io/misc/hangar-publishing
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)
}
}
Expand Down

0 comments on commit 5782904

Please sign in to comment.