Skip to content
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

sbt-mima-plugin 0.1.15 fails with NoSuchMethodError: sbt.ModuleID.withName #183

Closed
pelepelin opened this issue Jul 25, 2017 · 1 comment · Fixed by #190
Closed

sbt-mima-plugin 0.1.15 fails with NoSuchMethodError: sbt.ModuleID.withName #183

pelepelin opened this issue Jul 25, 2017 · 1 comment · Fixed by #190
Assignees
Labels
Milestone

Comments

@pelepelin
Copy link

$ sbt mimaReportBinaryIssues

java.lang.NoSuchMethodError: sbt.ModuleID.withName(Ljava/lang/String;)Lsbt/ModuleID;
        at com.typesafe.tools.mima.plugin.MimaPlugin$$anonfun$mimaDefaultSettings$4$$anonfun$apply$5.apply(MimaPlugin.scala:98)

build.properties

sbt.version=0.13.15

plugins.sbt

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.15")

build.sbt

lazy val root = (project in file(".")).
  settings(
    inThisBuild(Seq(
      organization := "com.example",
      scalaVersion := "2.11.11",
      version      := "0.1.1-SNAPSHOT"
    )),
    name := "Hello",

    mimaPreviousArtifacts := Set("com.example" %% "Hello" % "0.1.0")
  )
@dwijnand dwijnand added the bug label Jul 25, 2017
@dwijnand
Copy link
Collaborator

Thank you for the ticket, @checat.

The reason that sbt.ModuleID.withName is not found is that it only exists as of 0.13.16-RC1 (as of sbt/sbt#3215) which is what we built the plugin against. I should have at least targeted sbt 0.13.15.

The workaround is to upgrade your build to sbt 0.13.16-RC1, by changing the sbt.version in the project/build.properties file.

More generally, there is (currently) no facility in sbt to define the minimum sbt version. That feature is requested at sbt/sbt#2880.

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

Successfully merging a pull request may close this issue.

2 participants