@@ -18,6 +18,9 @@ def osgiExport(scalaVersion: String, version: String) = {
18
18
}) ++ Seq (s " scala.compat.java8.*;version= ${version}" )
19
19
}
20
20
21
+ ThisBuild / versionScheme := Some (" early-semver" )
22
+ ThisBuild / versionPolicyIntention := Compatibility .BinaryAndSourceCompatible
23
+
21
24
lazy val commonSettings = Seq (
22
25
scalacOptions ++= Seq (" -feature" , " -deprecation" , " -unchecked" ),
23
26
@@ -70,7 +73,23 @@ lazy val scalaJava8Compat = (project in file("."))
70
73
71
74
libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test" ,
72
75
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
+ },
74
93
75
94
testOptions += Tests .Argument (TestFrameworks .JUnit , " -v" , " -a" ),
76
95
0 commit comments