Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Enable scaladoc publishing and fix compiler warning #16

Merged
merged 5 commits into from
Jul 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION

script:
- sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck test
- sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck current/doc core/doc test

before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Console protected () extends js.Object {
* A simple assertion test that verifies whether `value` is truthy.
* If it is not, an `AssertionError` is thrown.
* If provided, the error `message` is formatted using `util.format()` and used as the error message.
* @value The value tested for being truthy
* @param value The value tested for being truthy
* @param optionalParams The arguments passed to the error message
*/
def assert(value: js.Any, optionalParams: Any*): Unit = js.native
Expand Down
11 changes: 7 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ lazy val commonSettings = Seq(
"-language:implicitConversions",
"-Xlint"
),
scalacOptions in (Compile, doc) ++= Seq(
scalacOptions in Compile in compile ++= Seq(
"-Xfatal-warnings"
),
scalacOptions in Compile in doc ++= Seq(
"-Xfatal-warnings",
"-no-link-warnings"
)
),
autoAPIMappings := true
)
lazy val commonScalaJsSettings = Seq(
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
Expand Down Expand Up @@ -170,7 +174,7 @@ lazy val publishingSettings = Seq(
publishArtifact in Test := false,
publishArtifact in (Compile, packageDoc) := true,
publishArtifact in (Compile, packageSrc) := true,
publishArtifact in packageDoc := false,
publishArtifact in packageDoc := true,
pomIncludeRepository := { _ =>
false
},
Expand All @@ -182,7 +186,6 @@ lazy val publishingSettings = Seq(
),
publishConfiguration := publishConfiguration.value.withOverwrite(false),
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true),
sources in (Compile, doc) := Seq.empty,
releaseIgnoreUntrackedFiles := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
Expand Down