mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 03:25:11 +01:00
Update Hangar publish plugin
This commit is contained in:
parent
13efe47a5c
commit
4074231a57
@ -1,7 +1,5 @@
|
|||||||
import io.papermc.hangarpublishplugin.model.Platforms
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("io.papermc.hangar-publish-plugin") version "0.1.0"
|
id("io.papermc.hangar-publish-plugin") version "0.1.2"
|
||||||
id("com.modrinth.minotaur") version "2.+"
|
id("com.modrinth.minotaur") version "2.+"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,15 +78,15 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
|
|||||||
changelog.set(changelogContent)
|
changelog.set(changelogContent)
|
||||||
apiKey.set(System.getenv("HANGAR_TOKEN"))
|
apiKey.set(System.getenv("HANGAR_TOKEN"))
|
||||||
platforms {
|
platforms {
|
||||||
register(Platforms.PAPER) {
|
paper {
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
||||||
platformVersions.set(listOf(property("mcVersionRange") as String))
|
platformVersions.set(listOf(property("mcVersionRange") as String))
|
||||||
}
|
}
|
||||||
register(Platforms.VELOCITY) {
|
velocity {
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
||||||
platformVersions.set(listOf(property("velocityVersion") as String))
|
platformVersions.set(listOf(property("velocityVersion") as String))
|
||||||
}
|
}
|
||||||
register(Platforms.WATERFALL) {
|
waterfall {
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
||||||
platformVersions.set(listOf(property("waterfallVersion") as String))
|
platformVersions.set(listOf(property("waterfallVersion") as String))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user