You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
857 B
Kotlin
42 lines
857 B
Kotlin
plugins {
|
|
id("java-library")
|
|
id("chat-bot.java-conventions")
|
|
}
|
|
|
|
group = "eu.jonahbauer.chat"
|
|
|
|
sourceSets {
|
|
create("config") {
|
|
java {
|
|
srcDir("src/config/java")
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
registerFeature("config") {
|
|
usingSourceSet(sourceSets["config"])
|
|
}
|
|
}
|
|
|
|
val configCompileOnly by configurations
|
|
val configCompileOnlyApi by configurations
|
|
val configAnnotationProcessor by configurations
|
|
|
|
dependencies {
|
|
compileOnlyApi(libs.annotations)
|
|
api(project(path)) {
|
|
capabilities {
|
|
requireCapability("${project.group}:${project.name}-config")
|
|
}
|
|
}
|
|
implementation(libs.gson)
|
|
|
|
configCompileOnly(libs.lombok)
|
|
configCompileOnlyApi(libs.annotations)
|
|
configAnnotationProcessor(libs.lombok)
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.compilerArgs.add("-Xlint:-module")
|
|
} |