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

View File

@ -97,6 +97,14 @@ object Artifact {
def classified(name: String, classifier: String): Artifact = def classified(name: String, classifier: String): Artifact =
Artifact(name, classifierType(classifier), DefaultExtension, Some(classifier), classifierConf(classifier) :: Nil, None) 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 optStringPickler = implicitly[Pickler[Option[String]]]
private val optStringUnpickler = implicitly[Unpickler[Option[String]]] private val optStringUnpickler = implicitly[Unpickler[Option[String]]]
private val vectorConfigurationPickler = implicitly[Pickler[Vector[Configuration]]] private val vectorConfigurationPickler = implicitly[Pickler[Vector[Configuration]]]
@ -105,11 +113,8 @@ object Artifact {
private val stringStringMapUnpickler = implicitly[Unpickler[Map[String, String]]] private val stringStringMapUnpickler = implicitly[Unpickler[Map[String, String]]]
implicit val pickler: Pickler[Artifact] = new Pickler[Artifact] { implicit val pickler: Pickler[Artifact] = new Pickler[Artifact] {
val tag = implicitly[FastTypeTag[Artifact]] val tag = Artifact.this.tag
val stringTag = implicitly[FastTypeTag[String]] 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 = { def pickle(a: Artifact, builder: PBuilder): Unit = {
builder.pushHints() builder.pushHints()
builder.hintTag(tag) builder.hintTag(tag)
@ -147,7 +152,7 @@ object Artifact {
} }
} }
implicit val unpickler: Unpickler[Artifact] = new Unpickler[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 = { def unpickle(tpe: String, reader: PReader): Any = {
reader.pushHints() reader.pushHints()
// reader.hintTag(tag) // reader.hintTag(tag)

View File

@ -36,11 +36,14 @@ object CrossVersion {
override def toString = "Full" override def toString = "Full"
} }
private val disabledTag = implicitly[FastTypeTag[Disabled.type]] // WORKAROUND sbt/sbt#2812 scaladoc 2.10 struggles with FastTypeTag's macro
private val binaryTag = implicitly[FastTypeTag[Binary]] import scala.pickling.FastTypeTag
private val fullTag = implicitly[FastTypeTag[Full]] 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] { 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 = { def pickle(a: CrossVersion, builder: PBuilder): Unit = {
builder.pushHints() builder.pushHints()
builder.hintTag(a match { builder.hintTag(a match {
@ -54,7 +57,7 @@ object CrossVersion {
} }
} }
implicit val unpickler: Unpickler[CrossVersion] = new Unpickler[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 = { def unpickle(tpe: String, reader: PReader): Any = {
reader.pushHints() reader.pushHints()
reader.hintTag(tag) 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 vectorConfigurationReportPickler = implicitly[Pickler[Vector[ConfigurationReport]]]
private val vectorConfigurationReportUnpickler = implicitly[Unpickler[Vector[ConfigurationReport]]] private val vectorConfigurationReportUnpickler = implicitly[Unpickler[Vector[ConfigurationReport]]]
private val updateStatsPickler = implicitly[Pickler[UpdateStats]] private val updateStatsPickler = implicitly[Pickler[UpdateStats]]
@ -310,11 +318,7 @@ object UpdateReport {
private val flMapUnpickler = implicitly[Unpickler[Map[File, Long]]] private val flMapUnpickler = implicitly[Unpickler[Map[File, Long]]]
implicit val pickler: Pickler[UpdateReport] with Unpickler[UpdateReport] = new Pickler[UpdateReport] with Unpickler[UpdateReport] { implicit val pickler: Pickler[UpdateReport] with Unpickler[UpdateReport] = new Pickler[UpdateReport] with Unpickler[UpdateReport] {
val tag = implicitly[FastTypeTag[UpdateReport]] val tag: FastTypeTag[UpdateReport] = FastTypeTag.apply
val fileTag = implicitly[FastTypeTag[File]]
val vectorConfigurationReportTag = implicitly[FastTypeTag[Vector[ConfigurationReport]]]
val updateStatsTag = implicitly[FastTypeTag[UpdateStats]]
val flMapTag = implicitly[FastTypeTag[Map[File, Long]]]
def pickle(a: UpdateReport, builder: PBuilder): Unit = { def pickle(a: UpdateReport, builder: PBuilder): Unit = {
builder.pushHints() builder.pushHints()
builder.hintTag(tag) builder.hintTag(tag)