mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
45 lines
937 B
Kotlin
45 lines
937 B
Kotlin
plugins {
|
|
id("net.kyori.indra")
|
|
id("net.kyori.indra.git")
|
|
id("net.kyori.indra.checkstyle")
|
|
id("net.kyori.indra.licenser.spotless")
|
|
}
|
|
|
|
version = rootProject.version
|
|
|
|
indra {
|
|
gpl3OnlyLicense()
|
|
|
|
javaVersions {
|
|
target(17)
|
|
}
|
|
|
|
github(GITHUB_ORGANIZATION, GITHUB_REPO)
|
|
}
|
|
|
|
spotless {
|
|
java {
|
|
targetExclude(
|
|
"src/main/java/net/draycia/carbon/common/messages/PrefixedDelegateIterator.java",
|
|
"src/main/java/net/draycia/carbon/common/messages/StandardPlaceholderResolverStrategyButDifferent.java",
|
|
"src/main/java/com/google/inject/assistedinject/**"
|
|
)
|
|
}
|
|
}
|
|
|
|
indraSpotlessLicenser {
|
|
licenseHeaderFile(rootProject.file("LICENSE_HEADER"))
|
|
}
|
|
|
|
tasks {
|
|
withType<JavaCompile> {
|
|
// disable 'warning: No processor claimed any of these annotations' spam
|
|
options.compilerArgs.add("-Xlint:-processing")
|
|
options.compilerArgs.add("-parameters")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
checkstyle(libs.stylecheck)
|
|
}
|