mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Bump hangar-publish-plugin
This commit is contained in:
2 files changed
+19
-18
No files matched your search
+18
-17
@@ -1,5 +1,3 @@
|
|||||||
import io.papermc.hangarpublishplugin.model.Platforms
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("carbon.build-logic")
|
id("carbon.build-logic")
|
||||||
alias(libs.plugins.hangar.publish)
|
alias(libs.plugins.hangar.publish)
|
||||||
@@ -9,41 +7,44 @@ plugins {
|
|||||||
val projectVersion: String by project // get from gradle.properties
|
val projectVersion: String by project // get from gradle.properties
|
||||||
version = projectVersion
|
version = projectVersion
|
||||||
|
|
||||||
|
fun Project.platformJar(): Provider<RegularFile> =
|
||||||
|
extensions.getByType<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile }
|
||||||
|
|
||||||
hangarPublish.publications.register("plugin") {
|
hangarPublish.publications.register("plugin") {
|
||||||
version.set(projectVersion)
|
version = projectVersion
|
||||||
id.set("Carbon")
|
id = "Carbon"
|
||||||
channel.set(if (projectVersion.contains("-beta.")) "Beta" else "Release")
|
channel = if (projectVersion.contains("-beta.")) "Beta" else "Release"
|
||||||
changelog.set(releaseNotes)
|
changelog = releaseNotes
|
||||||
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
|
apiKey = providers.environmentVariable("HANGAR_UPLOAD_KEY")
|
||||||
platforms.register(Platforms.PAPER) {
|
platforms.paper {
|
||||||
jar.set(project(":carbonchat-paper").the<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile })
|
jar = project(":carbonchat-paper").platformJar()
|
||||||
platformVersions.add("1.19.4-1.20.2")
|
platformVersions.add("1.19.4-1.20.2")
|
||||||
dependencies {
|
dependencies {
|
||||||
url("LuckPerms", "https://luckperms.net/")
|
url("LuckPerms", "https://luckperms.net/")
|
||||||
hangar("Essentials") {
|
hangar("Essentials") {
|
||||||
required.set(false)
|
required = false
|
||||||
}
|
}
|
||||||
url("DiscordSRV", "https://www.spigotmc.org/resources/discordsrv.18494/") {
|
url("DiscordSRV", "https://www.spigotmc.org/resources/discordsrv.18494/") {
|
||||||
required.set(false)
|
required = false
|
||||||
}
|
}
|
||||||
url("PlaceholderAPI", "https://www.spigotmc.org/resources/placeholderapi.6245/") {
|
url("PlaceholderAPI", "https://www.spigotmc.org/resources/placeholderapi.6245/") {
|
||||||
required.set(false)
|
required = false
|
||||||
}
|
}
|
||||||
hangar("MiniPlaceholders") {
|
hangar("MiniPlaceholders") {
|
||||||
required.set(false)
|
required = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
platforms.register(Platforms.VELOCITY) {
|
platforms.velocity {
|
||||||
jar.set(project(":carbonchat-velocity").the<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile })
|
jar = project(":carbonchat-velocity").platformJar()
|
||||||
platformVersions.add("3.2")
|
platformVersions.add("3.2")
|
||||||
dependencies {
|
dependencies {
|
||||||
url("LuckPerms", "https://luckperms.net/")
|
url("LuckPerms", "https://luckperms.net/")
|
||||||
hangar("MiniPlaceholders") {
|
hangar("MiniPlaceholders") {
|
||||||
required.set(false)
|
required = false
|
||||||
}
|
}
|
||||||
hangar("SignedVelocity") {
|
hangar("SignedVelocity") {
|
||||||
required.set(false)
|
required = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[plugins]
|
[plugins]
|
||||||
sponge-gradle = { id = "org.spongepowered.gradle.plugin", version = "2.2.0" }
|
sponge-gradle = { id = "org.spongepowered.gradle.plugin", version = "2.2.0" }
|
||||||
hangar-publish = { id = "io.papermc.hangar-publish-plugin", version = "0.1.0" }
|
hangar-publish = { id = "io.papermc.hangar-publish-plugin", version = "0.1.1" }
|
||||||
indra-publishing-sonatype = { id = "net.kyori.indra.publishing.sonatype", version.ref = "indra" }
|
indra-publishing-sonatype = { id = "net.kyori.indra.publishing.sonatype", version.ref = "indra" }
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
|
|||||||
Reference in new issue
Block a user