Skip to content

Support Ktlint 2.0 #3156

Open
Open

Description

@rChaoz

Since 2.0 (currently in alpha) Ktlint uses a new maven coordinate (io.github.ktlint.core), so 2.0 versions can't resolve. This is not workaround-able as the coordinates are hardcoded:

private static final String MAVEN_COORDINATE_0_DOT = "com.pinterest:ktlint:";
private static final String MAVEN_COORDINATE_1_DOT = "com.pinterest.ktlint:ktlint-cli:";

String ktlintCoordinate = (version.startsWith("0.") ? MAVEN_COORDINATE_0_DOT : MAVEN_COORDINATE_1_DOT) + version;

Additionally, the package name has also changed to io.github.ktlint..., this might also needs an adjustment. I believe the CLI has not changed so if that is used as the only entrypoint, then only the coordinates need updating.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions