Use Spotless for license formatting

This commit is contained in:
Andrew Steinborn
2023-01-01 18:46:33 -05:00
parent d715e17acb
commit b0862d2d16
405 changed files with 480 additions and 428 deletions

View File

@@ -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"))
}
}