From 6ce71f8afd42651f88f6d2e4c59688d42e9a1378 Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Tue, 10 Sep 2019 11:15:47 -0400 Subject: [PATCH] Temporarily disable doc task for Scala 2.12 --- build.sbt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sbt b/build.sbt index ba9be57f5..bfc251498 100644 --- a/build.sbt +++ b/build.sbt @@ -107,6 +107,14 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform) ) }, + // See https://github.com/sbt/sbt/issues/4995 + publishArtifact in (Compile, packageDoc) := { + CrossVersion.partialVersion(scalaVersion.value) match { + // doc task broken in sbt 1.3.0-RC4 and Scala 2.12.9 + case Some((2, 12)) => false + case Some((_, _)) => true + } + }, apiURL := Some( url(s"""https://scala.github.io/scala-xml/api/${"-.*".r.replaceAllIn(version.value, "")}/""") ),