Replace ktlint with Spotless for code formatting

- Add Spotless plugin 8.1.0 with ktlint 1.7.1 and Google Java Format
- Configure ktlint rules, disable filename/max-line-length/property-naming
- Remove old ktlint plugin
This commit is contained in:
世界
2026-01-17 16:58:19 +08:00
parent b58633edfe
commit 3c9ab19466
3 changed files with 22 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
[versions]
spotless = "8.1.0"
ktlint = "1.7.1"
[plugins]
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }