mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
84 lines
2.2 KiB
Kotlin
84 lines
2.2 KiB
Kotlin
import net.kyori.indra.IndraCheckstylePlugin
|
|
import net.kyori.indra.IndraPlugin
|
|
import net.kyori.indra.IndraPublishingPlugin
|
|
import net.kyori.indra.repository.sonatypeSnapshots
|
|
import org.checkerframework.gradle.plugin.CheckerFrameworkExtension
|
|
import org.checkerframework.gradle.plugin.CheckerFrameworkPlugin
|
|
|
|
plugins {
|
|
id("net.kyori.indra")
|
|
id("net.kyori.indra.git")
|
|
id("net.kyori.indra.checkstyle")
|
|
id("net.kyori.indra.publishing")
|
|
id("com.github.johnrengelman.shadow") apply false
|
|
id("org.checkerframework") apply false
|
|
}
|
|
|
|
ext["github"] = "https://github.com/Hexaoxide/Carbon"
|
|
|
|
val projectVersion: String by project
|
|
|
|
group = "net.draycia"
|
|
description = "CarbonChat - A modern chat plugin"
|
|
version = projectVersion // todo: include git hash
|
|
|
|
subprojects {
|
|
apply<IndraPlugin>()
|
|
apply<IndraCheckstylePlugin>()
|
|
apply<IndraPublishingPlugin>()
|
|
apply<CheckerFrameworkPlugin>()
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://oss.sonatype.org/content/groups/public/")
|
|
sonatypeSnapshots()
|
|
maven("https://nexus.proximyst.com/repository/maven-public/")
|
|
//maven("https://repo.incendo.org/content/repositories/snapshots") // normal cloud snapshot repo
|
|
maven("https://repo.jpenilla.xyz/snapshots/") { // temp cloud snapshot repo for sponge-8
|
|
content {
|
|
includeGroup("cloud.commandframework")
|
|
}
|
|
}
|
|
maven("https://maven.enginehub.org/repo/")
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
|
|
maven("https://jitpack.io")
|
|
maven("https://dl.bintray.com/ichbinjoe/public/")
|
|
maven("https://repo.codemc.org/repository/maven-public/")
|
|
maven("https://repo.glaremasters.me/repository/public/")
|
|
maven("https://repo.aikar.co/content/groups/aikar/")
|
|
}
|
|
|
|
dependencies {
|
|
checkstyle(rootProject.libs.stylecheck)
|
|
}
|
|
|
|
configure<JavaPluginConvention> {
|
|
disableAutoTargetJvm()
|
|
}
|
|
|
|
configure<CheckerFrameworkExtension> {
|
|
checkers = listOf(
|
|
"org.checkerframework.checker.nullness.NullnessChecker"
|
|
)
|
|
}
|
|
|
|
indra {
|
|
gpl3OnlyLicense()
|
|
|
|
javaVersions {
|
|
target(11)
|
|
}
|
|
|
|
github("Hexaoxide", "Carbon")
|
|
}
|
|
|
|
}
|
|
|
|
tasks {
|
|
// Root project has no useful artifacts
|
|
withType<Jar> {
|
|
onlyIf { false }
|
|
}
|
|
}
|