Files
Carbon/build.gradle.kts
T
2023-04-16 09:26:32 -07:00

53 lines
1.7 KiB
Kotlin

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
hangarPublish.publications.register("plugin") {
version.set(projectVersion)
owner.set("Vicarious")
slug.set("Carbon")
channel.set(if (projectVersion.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/")
hangar("EssentialsX", "Essentials") {
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)
}
hangar("MiniPlaceholders", "MiniPlaceholders") {
required.set(false)
}
}
}
platforms.register(Platforms.VELOCITY) {
jar.set(project(":carbonchat-velocity").the<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile })
platformVersions.add("3.2")
dependencies {
url("LuckPerms", "https://luckperms.net/")
hangar("MiniPlaceholders", "MiniPlaceholders") {
required.set(false)
}
hangar("4drian3d", "UnSignedVelocity") {
required.set(false)
}
}
}
}