42 lines
818 B
Kotlin
42 lines
818 B
Kotlin
plugins {
|
|
id("com.diffplug.spotless") version "latest.release"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
spotless {
|
|
java {
|
|
target("**/src/**/java/**/*.java")
|
|
removeUnusedImports()
|
|
importOrder()
|
|
licenseHeader("/* © SRSoftware 2026 */")
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
group = "de.srsoftware"
|
|
|
|
apply(plugin = "java-library")
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
val implementation by configurations
|
|
val compileOnly by configurations
|
|
val testImplementation by configurations
|
|
val testRuntimeOnly by configurations
|
|
|
|
dependencies {
|
|
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
}
|
|
|
|
tasks.withType<Test>() {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|