java.lang.StringIndexOutOfBoundsException). The plugin was working fine on all JDK eap versions, including project loom . The version format used is, $ java -version
openjdk version "16-loom" 2021-03-16
OpenJDK Runtime Environment (build 16-loom+6-105)
OpenJDK 64-Bit Server VM (build 16-loom+6-105, mixed mode, sharing)
Is it possible to handle the EAP version also?
6.7-rc-15.5.010.13.6)spotless {
java {
googleJavaFormat(Versions.googleJavaFormat)
}
kotlin {
ktlint(Versions.ktlint).userData(mapOf("disabled_rules" to "no-wildcard-imports"))
targetExclude("$buildDir/**/*.kt", "bin/**/*.kt")
// licenseHeader(License.Apache)
}
kotlinGradle {
ktlint(Versions.ktlint).userData(mapOf("disabled_rules" to "no-wildcard-imports"))
target("*.gradle.kts")
}
format("misc") {
target("**/*.md", "**/.gitignore")
trimTrailingWhitespace()
endWithNewline()
}
}
```
- [x] copy-paste the full content of any console errors emitted by `gradlew spotless[Apply/Check] --stacktrace`
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 7
at com.diffplug.spotless.java.GoogleJavaFormatStep.
... 199 more
```
Ah, this should be easy to fix.
Thanks for reporting. Fixed in plugin-gradle 5.5.1 and plugin-maven 2.3.1
Most helpful comment
Thanks for reporting. Fixed in
plugin-gradle 5.5.1andplugin-maven 2.3.1