Use Spotless for license formatting
This commit is contained in:
@@ -2,6 +2,7 @@ plugins {
|
||||
`kotlin-dsl`
|
||||
checkstyle
|
||||
id("net.kyori.indra.publishing") version "2.0.6"
|
||||
id("com.diffplug.spotless") version "6.12.0"
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -9,6 +10,10 @@ repositories {
|
||||
maven("https://plugins.gradle.org/m2")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.12.0")
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
register("set-manifest-impl-version") {
|
||||
@@ -19,9 +24,19 @@ gradlePlugin {
|
||||
id = "velocity-checkstyle"
|
||||
implementationClass = "com.velocitypowered.script.VelocityCheckstylePlugin"
|
||||
}
|
||||
register("velocity-spotless") {
|
||||
id = "velocity-spotless"
|
||||
implementationClass = "com.velocitypowered.script.VelocitySpotlessPlugin"
|
||||
}
|
||||
register("velocity-publish") {
|
||||
id = "velocity-publish"
|
||||
implementationClass = "com.velocitypowered.script.VelocityPublishPlugin"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spotless {
|
||||
kotlin {
|
||||
licenseHeaderFile(project.rootProject.file("../HEADER.txt"))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user