@@ -14,6 +14,8 @@ lazy val root = project
14
14
15
15
// == Core Libraries ==
16
16
17
+ lazy val junit = libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % Test
18
+
17
19
lazy val compat = crossProject(JSPlatform , JVMPlatform )
18
20
.withoutSuffixFor(JVMPlatform )
19
21
.crossType(CrossType .Pure )
@@ -32,7 +34,7 @@ lazy val compat = crossProject(JSPlatform, JVMPlatform)
32
34
)
33
35
.jvmSettings(
34
36
OsgiKeys .exportPackage := Seq (s " scala.collection.compat.*;version= ${version.value}" ),
35
- libraryDependencies += " com.novocode " % " junit-interface " % " 0.11 " % " test " ,
37
+ junit,
36
38
javaHome in Compile := {
37
39
val oldValue = (javaHome in Compile ).value
38
40
val isOnCi = sys.env.get(" CI" ).isDefined
@@ -65,6 +67,36 @@ lazy val compat = crossProject(JSPlatform, JVMPlatform)
65
67
lazy val compatJVM = compat.jvm
66
68
lazy val compatJS = compat.js
67
69
70
+ lazy val `binary-compat-old` = project
71
+ .in(file(" binary-compat/old" ))
72
+ .settings(scalaVersion := scala212)
73
+ .disablePlugins(ScalafixPlugin )
74
+
75
+ lazy val `binary-compat-new` = project
76
+ .in(file(" binary-compat/new" ))
77
+ .settings(scalaVersion := scala212)
78
+ .dependsOn(compatJVM)
79
+ .disablePlugins(ScalafixPlugin )
80
+
81
+ lazy val `binary-compat` = project
82
+ .in(file(" binary-compat/test" ))
83
+ .settings(
84
+ scalaVersion := scala212,
85
+ libraryDependencies += " com.typesafe" %% " mima-reporter" % " 0.3.0" % Test ,
86
+ junit,
87
+ buildInfoPackage := " build" ,
88
+ buildInfoKeys := Seq [BuildInfoKey ](
89
+ " oldClasspath" -> (classDirectory in (`binary-compat-old`, Compile )).value.toString,
90
+ " newClasspath" -> (classDirectory in (`binary-compat-new`, Compile )).value.toString
91
+ ),
92
+ test in Test := (test in Test ).dependsOn(
93
+ compile in (`binary-compat-old`, Compile ),
94
+ compile in (`binary-compat-new`, Compile )
95
+ ).value
96
+ )
97
+ .enablePlugins(BuildInfoPlugin )
98
+ .disablePlugins(ScalafixPlugin )
99
+
68
100
lazy val scalafixRules = project
69
101
.in(file(" scalafix/rules" ))
70
102
.settings(
0 commit comments