mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-20 16:07:43 +01:00
16 lines
407 B
Kotlin
16 lines
407 B
Kotlin
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()
|
|
}
|
|
}
|