-
Notifications
You must be signed in to change notification settings - Fork 17
Move mimaSettings back to scalaModuleSettings #28
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
Conversation
|
||
lazy val scalaModuleSettingsJVM: Seq[Setting[_]] = Seq( | ||
mimaPreviousVersion := None | ||
) ++ mimaSettings ++ scalaModuleOsgiSettings | ||
) ++ scalaModuleOsgiSettings |
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.
Shouldn't mimaPreviousVersion
also be moved to scalaModuleSettings
?
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.
right, thanks! so hot in this office...
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.
🎾
Thanks - still got to fix some stuff to make MiMa actually work on the js artifacts. Testing that locally. |
7479ef6
to
4bd0619
Compare
@sjrd @dwijnand I have MiMa working now for both jvm and js projects. Here's a log of using this plugin with scala-parser-combinators, it works correctly. MiMa would have caught scala/scala-parser-combinators#119 before the release of 1.0.6.
|
|
||
{ | ||
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ | ||
mimaPreviousArtifacts := Set(organization.value %%% s"${moduleName.value}" % mimaPreviousVersion.value.getOrElse("dummy")) |
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.
I think you should be able to use the following, which won't require the dependency on sbt-scalajs
:
mimaPreviousArtifacts := Set(organization.value % moduleName.value % mimaPreviousVersion.value.getOrElse("dummy") cross crossVersion.value)
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.
Thanks, I'll try that!
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.
Works! I pushed that change.
Moves the `mimaSettings` back into `scalaModuleSettings`, which are added to both JVM and JS projects of modules that cross-build with Scala.js.
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.
Nice :)
Will release 1.0.11 now. |
Running MiMa makes sense also for scala-js artifacts.