Merge pull request #3401 from dwijnand/fix-doc

Fix doc erroring
This commit is contained in:
eugene yokota 2017-08-04 17:27:20 -04:00 committed by GitHub
commit 3ef24be443
4 changed files with 29 additions and 18 deletions

View File

@ -15,7 +15,7 @@ jdk:
env:
matrix:
- SBT_CMD="safeUnitTests"
- SBT_CMD=";doc;safeUnitTests"
- SBT_CMD="otherUnitTests"
- SBT_CMD="scripted actions/*"
- SBT_CMD="scripted api/*"
@ -41,8 +41,7 @@ env:
notifications:
email:
- eugene.yokota@typesafe.com
- joshua.suereth@typesafe.com
- sbt-dev-bot@googlegroups.com
script:
- sbt -J-XX:ReservedCodeCacheSize=128m "$SBT_CMD"

View File

@ -97,6 +97,14 @@ object Artifact {
def classified(name: String, classifier: String): Artifact =
Artifact(name, classifierType(classifier), DefaultExtension, Some(classifier), classifierConf(classifier) :: Nil, None)
// WORKAROUND sbt/sbt#2812 scaladoc 2.10 struggles with FastTypeTag's macro
import scala.pickling.FastTypeTag
private[this] implicit val tag: FastTypeTag[Artifact] = FastTypeTag.apply
private[this] implicit val optionStringTag: FastTypeTag[Option[String]] = FastTypeTag.apply
private[this] implicit val configurationTag: FastTypeTag[Configuration] = FastTypeTag.apply
private[this] implicit val vectorConfigurationTag: FastTypeTag[Vector[Configuration]] = FastTypeTag.apply
private[this] implicit val stringStringMapTag: FastTypeTag[Map[String, String]] = FastTypeTag.apply
private val optStringPickler = implicitly[Pickler[Option[String]]]
private val optStringUnpickler = implicitly[Unpickler[Option[String]]]
private val vectorConfigurationPickler = implicitly[Pickler[Vector[Configuration]]]
@ -105,11 +113,8 @@ object Artifact {
private val stringStringMapUnpickler = implicitly[Unpickler[Map[String, String]]]
implicit val pickler: Pickler[Artifact] = new Pickler[Artifact] {
val tag = implicitly[FastTypeTag[Artifact]]
val tag = Artifact.this.tag
val stringTag = implicitly[FastTypeTag[String]]
val optionStringTag = implicitly[FastTypeTag[Option[String]]]
val vectorConfigurationTag = implicitly[FastTypeTag[Vector[Configuration]]]
val stringStringMapTag = implicitly[FastTypeTag[Map[String, String]]]
def pickle(a: Artifact, builder: PBuilder): Unit = {
builder.pushHints()
builder.hintTag(tag)
@ -147,7 +152,7 @@ object Artifact {
}
}
implicit val unpickler: Unpickler[Artifact] = new Unpickler[Artifact] {
val tag = implicitly[FastTypeTag[Artifact]]
val tag = Artifact.this.tag
def unpickle(tpe: String, reader: PReader): Any = {
reader.pushHints()
// reader.hintTag(tag)

View File

@ -36,11 +36,14 @@ object CrossVersion {
override def toString = "Full"
}
private val disabledTag = implicitly[FastTypeTag[Disabled.type]]
private val binaryTag = implicitly[FastTypeTag[Binary]]
private val fullTag = implicitly[FastTypeTag[Full]]
// WORKAROUND sbt/sbt#2812 scaladoc 2.10 struggles with FastTypeTag's macro
import scala.pickling.FastTypeTag
private[this] val tag = FastTypeTag[CrossVersion]
private val disabledTag = FastTypeTag[Disabled.type]
private val binaryTag = FastTypeTag[Binary]
private val fullTag = FastTypeTag[Full]
implicit val pickler: Pickler[CrossVersion] = new Pickler[CrossVersion] {
val tag = implicitly[FastTypeTag[CrossVersion]]
val tag = CrossVersion.this.tag
def pickle(a: CrossVersion, builder: PBuilder): Unit = {
builder.pushHints()
builder.hintTag(a match {
@ -54,7 +57,7 @@ object CrossVersion {
}
}
implicit val unpickler: Unpickler[CrossVersion] = new Unpickler[CrossVersion] {
val tag = implicitly[FastTypeTag[CrossVersion]]
val tag = CrossVersion.this.tag
def unpickle(tpe: String, reader: PReader): Any = {
reader.pushHints()
reader.hintTag(tag)

View File

@ -302,6 +302,14 @@ object UpdateReport {
}
}
// WORKAROUND sbt/sbt#2812 scaladoc 2.10 struggles with FastTypeTag's macro
import scala.pickling.FastTypeTag
private[this] implicit val configurationReportTag: FastTypeTag[ConfigurationReport] = FastTypeTag.apply
private[this] implicit val vectorConfigurationReportTag: FastTypeTag[Vector[ConfigurationReport]] = FastTypeTag.apply
private[this] implicit val updateStatsTag: FastTypeTag[UpdateStats] = FastTypeTag.apply
private[this] implicit val fileTag: FastTypeTag[File] = FastTypeTag.apply
private[this] implicit val flMapTag: FastTypeTag[Map[File, Long]] = FastTypeTag.apply
private val vectorConfigurationReportPickler = implicitly[Pickler[Vector[ConfigurationReport]]]
private val vectorConfigurationReportUnpickler = implicitly[Unpickler[Vector[ConfigurationReport]]]
private val updateStatsPickler = implicitly[Pickler[UpdateStats]]
@ -310,11 +318,7 @@ object UpdateReport {
private val flMapUnpickler = implicitly[Unpickler[Map[File, Long]]]
implicit val pickler: Pickler[UpdateReport] with Unpickler[UpdateReport] = new Pickler[UpdateReport] with Unpickler[UpdateReport] {
val tag = implicitly[FastTypeTag[UpdateReport]]
val fileTag = implicitly[FastTypeTag[File]]
val vectorConfigurationReportTag = implicitly[FastTypeTag[Vector[ConfigurationReport]]]
val updateStatsTag = implicitly[FastTypeTag[UpdateStats]]
val flMapTag = implicitly[FastTypeTag[Map[File, Long]]]
val tag: FastTypeTag[UpdateReport] = FastTypeTag.apply
def pickle(a: UpdateReport, builder: PBuilder): Unit = {
builder.pushHints()
builder.hintTag(tag)