mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
52 lines
1.5 KiB
Kotlin
52 lines
1.5 KiB
Kotlin
plugins {
|
|
id("carbon.build-logic")
|
|
alias(libs.plugins.hangar.publish)
|
|
alias(libs.plugins.cloud.buildLogic.rootProject.publishing)
|
|
}
|
|
|
|
val projectVersion: String by project // get from gradle.properties
|
|
version = projectVersion
|
|
|
|
fun Project.platformJar(): Provider<RegularFile> =
|
|
extensions.getByType<CarbonPlatformExtension>().productionJar
|
|
|
|
hangarPublish.publications.register("plugin") {
|
|
version = projectVersion
|
|
id = "Carbon"
|
|
channel = if (projectVersion.contains("-beta.")) "Beta" else "Release"
|
|
changelog = releaseNotes
|
|
apiKey = providers.environmentVariable("HANGAR_UPLOAD_KEY")
|
|
platforms.paper {
|
|
jar = project(":carbonchat-paper").platformJar()
|
|
platformVersions.add("1.21.4-1.21.11")
|
|
dependencies {
|
|
url("LuckPerms", "https://luckperms.net/")
|
|
hangar("Essentials") {
|
|
required = false
|
|
}
|
|
url("DiscordSRV", "https://www.spigotmc.org/resources/discordsrv.18494/") {
|
|
required = false
|
|
}
|
|
url("PlaceholderAPI", "https://www.spigotmc.org/resources/placeholderapi.6245/") {
|
|
required = false
|
|
}
|
|
hangar("MiniPlaceholders") {
|
|
required = false
|
|
}
|
|
}
|
|
}
|
|
platforms.velocity {
|
|
jar = project(":carbonchat-velocity").platformJar()
|
|
platformVersions.add("3.4")
|
|
dependencies {
|
|
url("LuckPerms", "https://luckperms.net/")
|
|
hangar("MiniPlaceholders") {
|
|
required = false
|
|
}
|
|
hangar("SignedVelocity") {
|
|
required = false
|
|
}
|
|
}
|
|
}
|
|
}
|