Migrate buildSrc plugins to build-logic
This commit is contained in:
committed by
Andrew Steinborn
parent
7e932eaad4
commit
3d20c3dd2d
15
build-logic/src/main/kotlin/velocity-spotless.gradle.kts
Normal file
15
build-logic/src/main/kotlin/velocity-spotless.gradle.kts
Normal 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user