mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
move hangar-publish-plugin config to root project
This commit is contained in:
2 files changed
+30
-30
No files matched your search
@@ -1,8 +1,38 @@
|
||||
import io.papermc.hangarpublishplugin.model.Platforms
|
||||
|
||||
plugins {
|
||||
id("carbon.build-logic")
|
||||
id("io.papermc.hangar-publish-plugin")
|
||||
}
|
||||
|
||||
group = "net.draycia"
|
||||
description = "CarbonChat - A modern chat plugin"
|
||||
val projectVersion: String by project // get from gradle.properties
|
||||
version = projectVersion
|
||||
|
||||
val projectVer = project.version as String
|
||||
|
||||
hangarPublish.publications.register("plugin") {
|
||||
version.set(projectVer)
|
||||
owner.set("Vicarious")
|
||||
slug.set("Carbon")
|
||||
channel.set(if (projectVer.contains("+beta.")) "Beta" else "Release")
|
||||
changelog.set(releaseNotes)
|
||||
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
|
||||
platforms.register(Platforms.PAPER) {
|
||||
jar.set(project(":carbonchat-paper").the<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile })
|
||||
platformVersions.add("1.19.4")
|
||||
dependencies {
|
||||
url("LuckPerms", "https://luckperms.net/")
|
||||
url("EssentialsDiscord", "https://essentialsx.net/") {
|
||||
required.set(false)
|
||||
}
|
||||
url("DiscordSRV", "https://www.spigotmc.org/resources/discordsrv.18494/") {
|
||||
required.set(false)
|
||||
}
|
||||
url("PlaceholderAPI", "https://www.spigotmc.org/resources/placeholderapi.6245/") {
|
||||
required.set(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,9 @@
|
||||
import io.papermc.hangarpublishplugin.model.Platforms
|
||||
|
||||
plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("net.minecrell.plugin-yml.bukkit")
|
||||
id("paper-plugin-yml")
|
||||
id("xyz.jpenilla.run-paper")
|
||||
id("carbon.permissions")
|
||||
id("io.papermc.hangar-publish-plugin")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -77,30 +74,3 @@ carbonPermission.permissions.get().forEach {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val projectVer = project.version as String
|
||||
|
||||
hangarPublish.publications.register("plugin") {
|
||||
version.set(projectVer)
|
||||
owner.set("Vicarious")
|
||||
slug.set("Carbon")
|
||||
channel.set(if (projectVer.contains("+beta.")) "Beta" else "Release")
|
||||
changelog.set(releaseNotes)
|
||||
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
|
||||
platforms.register(Platforms.PAPER) {
|
||||
jar.set(carbonPlatform.jarTask.flatMap { it.archiveFile })
|
||||
platformVersions.add("1.19.4")
|
||||
dependencies {
|
||||
url("LuckPerms", "https://luckperms.net/")
|
||||
url("EssentialsDiscord", "https://essentialsx.net/") {
|
||||
required.set(false)
|
||||
}
|
||||
url("DiscordSRV", "https://www.spigotmc.org/resources/discordsrv.18494/") {
|
||||
required.set(false)
|
||||
}
|
||||
url("PlaceholderAPI", "https://www.spigotmc.org/resources/placeholderapi.6245/") {
|
||||
required.set(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user