Skip to content

Support for other Scala versions #579

Description

@hnoson

Currently, only Scala 2.11 is supported. It's better to have a parameter to specify the version from config file.

static final String MAVEN_COORDINATE_PRE_2_0 = "com.geirsson:scalafmt-core_2.11:";
static final String MAVEN_COORDINATE = "org.scalameta:scalafmt-core_2.11:";

Activity

  1. nedtwigg commented on May 18, 2020

    @nedtwigg
    Member

    Would be happy to merge and release a PR for this!

    Besides the place you pointed out, the other affected locations are:

    ScalaFmtStep probably needs to add a versionScala parameter, and ideally that could be autopopulated by the gradle and maven plugins by slurping it from the build context, but it's alright if that's not possible.

  2. hnoson commented on May 19, 2020

    @hnoson
    Author

    I realized that the version doesn't matter as long as it's used from Java because the version suffix is for binary compatibility. The formatting functionality doesn't change depending on the Scala version. Please close this issue if there is no concern.

  3. nedtwigg commented on May 19, 2020

    @nedtwigg
    Member

    Thanks, useful to know!

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