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
627 B
33 lines
627 B
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() |
|
eclipse('4.26').configFile('config/formatting.xml') |
|
licenseHeader '/* © SRSoftware $YEAR */' // or licenseHeaderFile |
|
} |
|
} |
|
|
|
compileJava.dependsOn 'spotlessApply' |