Skip to content

Commit a9568d3

Browse files
Update Hangar publish plugin
1 parent 36ea0fe commit a9568d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

universal/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import io.papermc.hangarpublishplugin.model.Platforms
22

33
plugins {
44
id "com.github.johnrengelman.shadow" version "8.1.1"
5-
id "io.papermc.hangar-publish-plugin" version "0.1.0"
5+
id "io.papermc.hangar-publish-plugin" version "0.1.2"
66
id "com.modrinth.minotaur" version "2.+"
77
id "java-library"
88
id "maven-publish"
@@ -130,7 +130,7 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
130130
changelog.set(changelogContent)
131131
apiKey.set(System.getenv("HANGAR_TOKEN"))
132132
platforms {
133-
register(Platforms.PAPER) {
133+
paper {
134134
jar.set(shadowJar.archiveFile)
135135
platformVersions.set([property('mcVersionRange') as String])
136136
dependencies.hangar("ViaVersion") {
@@ -140,7 +140,7 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
140140
required.set(false)
141141
}
142142
}
143-
register(Platforms.VELOCITY) {
143+
velocity {
144144
jar.set(shadowJar.archiveFile)
145145
platformVersions.set([property("velocityVersion") as String])
146146
dependencies.hangar("ViaVersion") {
@@ -150,7 +150,7 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
150150
required.set(false)
151151
}
152152
}
153-
register(Platforms.WATERFALL) {
153+
waterfall {
154154
jar.set(shadowJar.archiveFile)
155155
platformVersions.set([property("waterfallVersion") as String])
156156
dependencies.hangar("ViaVersion") {

0 commit comments

Comments
 (0)