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.
43 lines
866 B
Plaintext
43 lines
866 B
Plaintext
1 year ago
|
plugins {
|
||
|
id("java-library")
|
||
|
id("chat-bot.java-conventions")
|
||
|
}
|
||
|
|
||
|
group = "eu.jonahbauer.chat"
|
||
|
version = "0.1.0-SNAPSHOT"
|
||
|
|
||
|
sourceSets {
|
||
|
create("config") {
|
||
|
java {
|
||
|
srcDir("src/config/java")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
java {
|
||
|
registerFeature("config") {
|
||
|
usingSourceSet(sourceSets["config"])
|
||
|
}
|
||
|
}
|
||
|
|
||
|
val configApi by configurations
|
||
|
val configCompileOnly by configurations
|
||
|
val configAnnotationProcessor by configurations
|
||
|
|
||
|
dependencies {
|
||
|
api(libs.annotations)
|
||
|
api(project(path)) {
|
||
|
capabilities {
|
||
|
requireCapability("${project.group}:${project.name}-config")
|
||
|
}
|
||
|
}
|
||
|
implementation(libs.jackson.annotations)
|
||
|
|
||
|
configApi(libs.annotations)
|
||
|
configCompileOnly(libs.lombok)
|
||
|
configAnnotationProcessor(libs.lombok)
|
||
|
}
|
||
|
|
||
|
tasks.withType<JavaCompile> {
|
||
|
options.compilerArgs.add("-Xlint:-module")
|
||
|
}
|