Migrate buildSrc plugins to build-logic

This commit is contained in:
Alexander Städing
2023-03-27 00:00:24 +02:00
committed by Andrew Steinborn
parent 7e932eaad4
commit 3d20c3dd2d
18 changed files with 145 additions and 263 deletions

View File

@@ -0,0 +1,15 @@
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.gradle.spotless.SpotlessPlugin
apply<SpotlessPlugin>()
extensions.configure<SpotlessExtension> {
java {
if (project.name == "velocity-api") {
licenseHeaderFile(file("HEADER.txt"))
} else {
licenseHeaderFile(rootProject.file("HEADER.txt"))
}
removeUnusedImports()
}
}