You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
plugins { |
|
id("com.diffplug.spotless") version "7.0.4" |
|
} |
|
|
|
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.http:6.0.4") |
|
implementation("de.srsoftware:tools.logging:1.3.2") |
|
implementation("org.json:json:20240303") |
|
} |
|
|
|
tasks.withType<Test>() { |
|
useJUnitPlatform() |
|
} |
|
}
|
|
|