first commit
This commit is contained in:
50
build.gradle.kts
Normal file
50
build.gradle.kts
Normal file
@@ -0,0 +1,50 @@
|
||||
plugins {
|
||||
id("com.diffplug.spotless") version "latest.release"
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
spotless {
|
||||
java {
|
||||
target("**/src/**/java/**/*.java")
|
||||
removeUnusedImports()
|
||||
importOrder()
|
||||
licenseHeader("/* © SRSoftware 2025 */")
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
tasks.named("build") {
|
||||
dependsOn("spotlessApply")
|
||||
}
|
||||
}
|
||||
|
||||
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")
|
||||
|
||||
implementation("de.srsoftware:tools.logging:1.3.2")
|
||||
}
|
||||
|
||||
tasks.withType<Test>() {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user