@@ -18,6 +18,9 @@ def osgiExport(scalaVersion: String, version: String) = {
1818 }) ++ Seq (s " scala.compat.java8.*;version= ${version}" )
1919}
2020
21+ ThisBuild / versionScheme := Some (" early-semver" )
22+ ThisBuild / versionPolicyIntention := Compatibility .BinaryAndSourceCompatible
23+
2124lazy val commonSettings = Seq (
2225 scalacOptions ++= Seq (" -feature" , " -deprecation" , " -unchecked" ),
2326
@@ -70,7 +73,23 @@ lazy val scalaJava8Compat = (project in file("."))
7073
7174 libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
7275
73- scalaModuleMimaPreviousVersion := None ,
76+ // we're still in 0.x land so we could choose to break bincompat,
77+ // but let's at least be aware when we're doing it. also we should
78+ // think about going 1.0, it's been a while
79+ scalaModuleMimaPreviousVersion := Some (" 0.9.1" ),
80+
81+ mimaBinaryIssueFilters ++= {
82+ import com .typesafe .tools .mima .core ._ , ProblemFilters ._
83+ Seq (
84+ // bah
85+ exclude[IncompatibleSignatureProblem ](" *" ),
86+ // mysterious -- see scala/scala-java8-compat#211
87+ exclude[DirectMissingMethodProblem ](" scala.compat.java8.Priority1FunctionConverters.enrichAsJavaIntFunction" ),
88+ exclude[ReversedMissingMethodProblem ](" scala.compat.java8.Priority1FunctionConverters.enrichAsJavaIntFunction" ),
89+ exclude[DirectMissingMethodProblem ](" scala.compat.java8.FunctionConverters.package.enrichAsJavaIntFunction" ),
90+ exclude[ReversedMissingMethodProblem ](" scala.compat.java8.FunctionConverters.package.enrichAsJavaIntFunction" ),
91+ )
92+ },
7493
7594 testOptions += Tests .Argument (TestFrameworks .JUnit , " -v" , " -a" ),
7695
0 commit comments