@@ -6,15 +6,24 @@ lazy val root = project.in(file(".")).
6
6
name := " Scala.js DOM"
7
7
8
8
crossScalaVersions in ThisBuild := {
9
- if (scalaJSVersion.startsWith(" 1." )) Seq (" 2.12.6 " , " 2.11.12" , " 2.13.0-M3 " )
10
- else Seq (" 2.12.6 " , " 2.11.12" , " 2.10.7" , " 2.13.0-M3 " , " 2.13.0-M4 " )
9
+ if (scalaJSVersion.startsWith(" 1." )) Seq (" 2.12.8 " , " 2.11.12" , " 2.13.0-RC1 " )
10
+ else Seq (" 2.12.8 " , " 2.11.12" , " 2.10.7" , " 2.13.0-RC1 " )
11
11
}
12
12
scalaVersion in ThisBuild := crossScalaVersions.value.head
13
13
14
14
val commonSettings = Seq (
15
15
version := " 0.9.7-SNAPSHOT" ,
16
16
organization := " org.scala-js" ,
17
- scalacOptions ++= Seq (" -deprecation" , " -feature" , " -Xfatal-warnings" )
17
+ scalacOptions ++= Seq (" -deprecation" , " -feature" , " -Xfatal-warnings" ),
18
+
19
+ // Work around https://github.com/scala-js/scala-js/issues/3612
20
+ scalacOptions in (Compile , doc) := {
21
+ val prev = (scalacOptions in (Compile , doc)).value
22
+ if (scalaJSVersion.startsWith(" 0.6." ) && scalaVersion.value.startsWith(" 2.13." ))
23
+ prev.filter(_ != " -Xfatal-warnings" )
24
+ else
25
+ prev
26
+ }
18
27
)
19
28
20
29
normalizedName := " scalajs-dom"
@@ -38,8 +47,7 @@ scalacOptions ++= {
38
47
def hasNewCollections (version : String ): Boolean = {
39
48
! version.startsWith(" 2.10." ) &&
40
49
! version.startsWith(" 2.11." ) &&
41
- ! version.startsWith(" 2.12." ) &&
42
- version != " 2.13.0-M3"
50
+ ! version.startsWith(" 2.12." )
43
51
}
44
52
45
53
/** Returns the appropriate subdirectory of `sourceDir` depending on whether
0 commit comments