New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ktfmt-gradle needs at least Gradle 7.2 #110
Comments
Ooops that sucks. Yup I think addressing the |
Well maybe, I'm not sure how to fix this as |
I took a stab at this here: I've tested this on a Gradle project with 6.9 and I managed to make it work. The reason why this is needed is #93 and the linked YouTrack issue. The workaround is for you to pin the
Removing the dep. constraint on |
Thanks! Will I need the workaround if we already use Kotlin 1.7.X Gradle plugin? |
Not really. But then I don't fully understand what's your setup. |
Oh, my misunderstanding. You wrote contraint for the buildscript block. |
Thanks for sharing. I've tested with your setup and the fix works correctly 👍 |
🐛 Describe the bug
Readme states that Gradle 6.8+ is supported.
String.titlecase was introduced in Kotlin 1.5 which is shipped with Gradle starting from 7.2.
We are running Gradle 6.9.2 and can't upgrade due to Gradle 7.0 removed the feature to switch Java compilers.
✅ Expected behavior
There are two options:
titlecase
usage (and maybe further 1.5 features ? maybe appendLn) to be Kotlin 1.4 compatible.💣 Steps to reproduce
Run any project with Gradle 6.9.2 and the ktfmt plugin installed.
📷 Screenshots
📱 Tech info
The text was updated successfully, but these errors were encountered: