@@ -7,7 +7,7 @@ import org.openqa.selenium.Capabilities
7
7
import org .scalajs .jsenv .selenium .SeleniumJSEnv
8
8
import org .scalajs .jsenv .selenium .TestCapabilities
9
9
10
- val previousVersion = None
10
+ val previousVersion : Option [ String ] = Some ( " 1.1.0 " )
11
11
12
12
val newScalaBinaryVersionsInThisRelease : Set [String ] =
13
13
Set ()
@@ -29,31 +29,31 @@ val commonSettings: Seq[Setting[_]] = Seq(
29
29
testOptions += Tests .Argument (TestFramework (" com.novocode.junit.JUnitFramework" ), " -v" , " -a" )
30
30
)
31
31
32
- val previousArtifactSetting = Def .settings()
33
- /* MiMa is completely disabled while we are in 1.0.0-SNAPSHOT.
32
+ val previousArtifactSetting = Def .settings(
34
33
mimaPreviousArtifacts ++= {
35
34
val scalaV = scalaVersion.value
36
35
val scalaBinaryV = scalaBinaryVersion.value
37
- if (newScalaBinaryVersionsInThisRelease.contains(scalaBinaryV)) {
38
- // New in this release, no binary compatibility to comply to
39
- Set.empty
40
- } else {
41
- previousVersion.map { pv =>
42
- val thisProjectID = projectID.value
36
+ val thisProjectID = projectID.value
37
+ previousVersion match {
38
+ case None =>
39
+ Set .empty
40
+ case _ if newScalaBinaryVersionsInThisRelease.contains(scalaBinaryV) =>
41
+ // New in this release, no binary compatibility to comply to
42
+ Set .empty
43
+ case Some (prevVersion) =>
43
44
/* Filter out e:info.apiURL as it expects 0.6.7-SNAPSHOT, whereas the
44
45
* artifact we're looking for has 0.6.6 (for example).
45
46
*/
46
47
val prevExtraAttributes =
47
48
thisProjectID.extraAttributes.filterKeys(_ != " e:info.apiURL" )
48
49
val prevProjectID =
49
- (thisProjectID.organization % thisProjectID.name % pv)
50
- .cross(thisProjectID.crossVersion)
51
- .extra(prevExtraAttributes.toSeq: _*)
52
- CrossVersion(scalaV, scalaBinaryV)(prevProjectID).cross(CrossVersion.Disabled)
53
- }.toSet
50
+ (thisProjectID.organization % thisProjectID.name % prevVersion)
51
+ .cross(thisProjectID.crossVersion)
52
+ .extra(prevExtraAttributes.toSeq: _* )
53
+ Set (prevProjectID)
54
54
}
55
55
}
56
- */
56
+ )
57
57
58
58
val jsEnvCapabilities = settingKey[org.openqa.selenium.Capabilities ](
59
59
" Capabilities of the SeleniumJSEnv" )
0 commit comments