This repository has been archived on 2026-11-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Concilium/build.gradle.kts
2026-03-22 16:01:01 -05:00

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())
}
}