Upgrade Ktlint maven coordinate (com.pinterest), default version (0.32.0)#394
Upgrade Ktlint maven coordinate (com.pinterest), default version (0.32.0)#394nedtwigg merged 7 commits intodiffplug:masterfrom sharedprophet:ktlint-maven-coordinate
Conversation
|
Is |
|
Here's how we resolved it for Ktlint-Gradle. Since Ktlint implements SemVer for all versioning, we imported a library that supports SemVer comparisons to handle all this logic. https://github.com/swiftzer/semver @nedtwigg I don't know if you have an existing methodology for doing SemVer comparisons. Don't know what your thoughts are on adding a library to handle this sort of thing. |
|
0.31.0 is the last of com.github.shyiko, 0.32.0 is the first for com.pinterest https://mvnrepository.com/artifact/com.github.shyiko/ktlint |
I'm against adding a dependency. Elsewhere in the code where we've had to change behavior based on a version, we've done feature-testing rather than version-testing, but that won't work here. Every |
nedtwigg
left a comment
There was a problem hiding this comment.
Thanks @sharedprophet! This looks great, I've got a minor nit on the implementation.
Only thing we need to merge is a test - need to make sure it works for 0.32.0 and 0.31.0. Here's the existing test:
Maybe have a worksShyiko test and a worksPinterest test?
|
Also, we need to update |
I did update those... working on putting a test in the core tests now. |
|
LGTM, thanks! I'll let this breathe for 24 hrs then merge and release tomorrow. |
JLLeitschuh
left a comment
There was a problem hiding this comment.
LGTM! Looking forward to this.
|
Published in |
Update ktlint coords.