9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

feat: update paperweight and hangar plugin

This commit is contained in:
LoJoSho
2023-12-28 19:29:28 -06:00
parent af0e58a7fa
commit 7ec8d07c70
4 changed files with 32 additions and 6 deletions

View File

@@ -1,10 +1,12 @@
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import io.papermc.hangarpublishplugin.model.Platforms
plugins {
id("java")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("io.papermc.hangar-publish-plugin") version "0.1.1"
}
group = "me.lojosho"
@@ -192,6 +194,30 @@ bukkit {
)
}
hangarPublish {
publications.register("plugin") {
version.set(project.version as String)
channel.set("Release")
if (project.version.toString().contains("-")) channel.set("Snapshot") // If its a dev build, it will have -dev on it
id.set("HibiscusCommons")
apiKey.set(System.getenv("HANGAR_API_TOKEN"))
platforms {
register(Platforms.PAPER) {
jar.set(tasks.jar.flatMap { it.archiveFile })
val versions: List<String> = listOf("1.18.2-1.20.4")
platformVersions.set(versions)
dependencies {
hangar("ProtocolLib") {
required.set(true)
}
}
}
}
}
}
// Publishing stuff below here to a remote maven repo
publishing {

View File

@@ -1,10 +1,10 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.5.1"
id("io.papermc.paperweight.userdev") version "1.5.11"
}
dependencies {
paperDevBundle("1.20.1-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT")
implementation(project(":common"))
}

View File

@@ -1,10 +1,10 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.5.1"
id("io.papermc.paperweight.userdev") version "1.5.11"
}
dependencies {
paperDevBundle("1.20.2-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
implementation(project(":common"))
}

View File

@@ -1,10 +1,10 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.5.1"
id("io.papermc.paperweight.userdev") version "1.5.11"
}
dependencies {
paperDevBundle("1.20.4-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
implementation(project(":common"))
}