Skip to content

Commit 4074231

Browse files
committed
Update Hangar publish plugin
1 parent 13efe47 commit 4074231

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

universal/build.gradle.kts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import io.papermc.hangarpublishplugin.model.Platforms
2-
31
plugins {
4-
id("io.papermc.hangar-publish-plugin") version "0.1.0"
2+
id("io.papermc.hangar-publish-plugin") version "0.1.2"
53
id("com.modrinth.minotaur") version "2.+"
64
}
75

@@ -80,15 +78,15 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
8078
changelog.set(changelogContent)
8179
apiKey.set(System.getenv("HANGAR_TOKEN"))
8280
platforms {
83-
register(Platforms.PAPER) {
81+
paper {
8482
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
8583
platformVersions.set(listOf(property("mcVersionRange") as String))
8684
}
87-
register(Platforms.VELOCITY) {
85+
velocity {
8886
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
8987
platformVersions.set(listOf(property("velocityVersion") as String))
9088
}
91-
register(Platforms.WATERFALL) {
89+
waterfall {
9290
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
9391
platformVersions.set(listOf(property("waterfallVersion") as String))
9492
}

0 commit comments

Comments
 (0)