-
Notifications
You must be signed in to change notification settings - Fork 459
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
Bump ktfmt to 0.21 and add support to Google and Kotlinlang formats #812
Bump ktfmt to 0.21 and add support to Google and Kotlinlang formats #812
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- add link to this PR in
plugin-gradle/CHANGES.md
, and put it under### Added
- copy this entry also to
plugin-maven/CHANGES.md
andCHANGES.md
I noted an optional refactor below. Nice to have but not necessary for a merge-and-release.
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/KotlinGradleExtension.java
Outdated
Show resolved
Hide resolved
@nedtwigg has spotless a way to compare two versions so I can delete the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version check is nice, but needs to be thread-safe.
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/KotlinGradleExtension.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missing an entry in the root CHANGES.md
. Once that gets done I think this is ready to merge and release.
Released in |
Manually tested, @cgrushko can you take a look at this PR?
Should
getCustomFormattingOptions
have a better way to manage ktfmt versioning availability? I was thinking about adding to theStyle
enum asince
property to throw errors.EDIT:
I added the
since
property so spotless will throw an exception if the user tries to use a ktfmt version that doesn't have a specific format.