Skip to content

Commit

Permalink
Merge pull request #2
Browse files Browse the repository at this point in the history
Fixed supported game versions
  • Loading branch information
NonSwag authored Jul 7, 2024
2 parents 2b09d1a + 359a4f3 commit a3383a9
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.4,1.20.5
gameVersions=1.20.6,1.21
7 changes: 4 additions & 3 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ paper {
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("Protect")
Expand All @@ -156,9 +160,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)
dependencies {
url("FastAsyncWorldEdit", "https://hangar.papermc.io/IntellectualSites/FastAsyncWorldEdit") {
Expand Down

0 comments on commit a3383a9

Please sign in to comment.