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.

33 lines
631 B

6 months ago
plugins {
id 'java'
id "com.diffplug.spotless" version "6.25.0"
}
group = 'de.srsoftware'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
spotless {
java {
target '*/src/*/java/**/*.java'
removeUnusedImports()
importOrder()
clangFormat('18.1.8').style('file:config/clang-format')
6 months ago
licenseHeader '/* © SRSoftware $YEAR */' // or licenseHeaderFile
}
}
compileJava.dependsOn 'spotlessApply'