Skip to content

Commit 6ce71f8

Browse files
committed
Temporarily disable doc task for Scala 2.12
1 parent 1f17d36 commit 6ce71f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.sbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
107107
)
108108
},
109109

110+
// See https://github.com/sbt/sbt/issues/4995
111+
publishArtifact in (Compile, packageDoc) := {
112+
CrossVersion.partialVersion(scalaVersion.value) match {
113+
// doc task broken in sbt 1.3.0-RC4 and Scala 2.12.9
114+
case Some((2, 12)) => false
115+
case Some((_, _)) => true
116+
}
117+
},
110118
apiURL := Some(
111119
url(s"""https://scala.github.io/scala-xml/api/${"-.*".r.replaceAllIn(version.value, "")}/""")
112120
),

0 commit comments

Comments
 (0)