mirror of
https://github.com/HibiscusMC/HibiscusCommons.git
synced 2025-12-21 07:59:20 +00:00
feat: update paperweight and hangar plugin
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
||||||
|
import io.papermc.hangarpublishplugin.model.Platforms
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||||
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
|
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
|
||||||
|
id("io.papermc.hangar-publish-plugin") version "0.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "me.lojosho"
|
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 stuff below here to a remote maven repo
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("io.papermc.paperweight.userdev") version "1.5.1"
|
id("io.papermc.paperweight.userdev") version "1.5.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
paperDevBundle("1.20.1-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT")
|
||||||
implementation(project(":common"))
|
implementation(project(":common"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("io.papermc.paperweight.userdev") version "1.5.1"
|
id("io.papermc.paperweight.userdev") version "1.5.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
paperDevBundle("1.20.2-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
|
||||||
implementation(project(":common"))
|
implementation(project(":common"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("io.papermc.paperweight.userdev") version "1.5.1"
|
id("io.papermc.paperweight.userdev") version "1.5.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
paperDevBundle("1.20.4-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
|
||||||
implementation(project(":common"))
|
implementation(project(":common"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user