Archived
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56 lines
1.2 KiB
Kotlin
56 lines
1.2 KiB
Kotlin
plugins {
|
|
java
|
|
jacoco
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven {
|
|
name = "sonatypeCentralSnapshots"
|
|
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
|
|
mavenContent {
|
|
snapshotsOnly()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply(plugin = "java")
|
|
apply(plugin = "jacoco")
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
options.compilerArgs.addAll(listOf("-Xlint:deprecation", "-Xlint:unchecked"))
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.jacocoTestReport {
|
|
dependsOn(tasks.test)
|
|
reports {
|
|
xml.required.set(true)
|
|
html.required.set(true)
|
|
csv.required.set(true)
|
|
}
|
|
}
|
|
|
|
val libs = rootProject.the<VersionCatalogsExtension>().named("libs")
|
|
|
|
dependencies {
|
|
testImplementation(libs.findLibrary("junit-jupiter").orElseThrow())
|
|
testImplementation(libs.findLibrary("assertj-core").orElseThrow())
|
|
testRuntimeOnly(libs.findLibrary("junit-platform-launcher").orElseThrow())
|
|
}
|
|
}
|