-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak publishing from plugin/lib splitting
1. Add sbt-plugin-releases so dynver can resolve its previous artifacts 2. Publish dynver in ivy-style (non-maven-style) so it can be resolve as a transitive dependency of sbt-dynver - the previous point was for when you're resolving dynver directly 3. Clear bintray/resolver which locally, not in CI, includes my own bintray repository, via my credentials info.. 4. Speed up scripted by reusing the user home sbt boot directory 5. Shift the MiMa related settings into its own file 6. Temporarily disable MiMa while we can't resolve dynver... :D
- Loading branch information
Showing
2 changed files
with
41 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sbt._, Keys._ | ||
import sbt.Classpaths.pluginProjectID | ||
|
||
import com.typesafe.tools.mima.core._ | ||
import com.typesafe.tools.mima.core.ProblemFilters.exclude | ||
import com.typesafe.tools.mima.plugin.MimaPlugin.autoImport._ | ||
|
||
object MimaSettings { | ||
// clear out mimaBinaryIssueFilters when changing this | ||
val mimaPreviousVersion = "5.0.0-M2" | ||
|
||
val projID = Def.setting { | ||
// Using projectID something is wrong... Looks for dynver_2.12 but artifacts are name=dynver | ||
// Even pluginProjectID.value.withExplicitArtifacts(Vector())) doesn't work here..? | ||
val sbtBv = (pluginCrossBuild / sbtBinaryVersion).value | ||
val sbv = (pluginCrossBuild / scalaBinaryVersion).value | ||
val mid = organization.value %% moduleName.value % version.value | ||
if (sbtPlugin.value) Defaults.sbtPluginExtra(mid, sbtBv, sbv) else mid | ||
} | ||
|
||
val mimaSettings = Def.settings ( | ||
mimaPreviousArtifacts := Set.empty, // Set(projID.value.withRevision(mimaPreviousVersion)), | ||
mimaReportSignatureProblems := true, | ||
mimaBinaryIssueFilters ++= Seq( | ||
ProblemFilters.exclude[Problem]("*.impl.*"), // KEEP: impl is for internal implementation details | ||
), | ||
) | ||
} |