Take into account new cross version fields in sbt 1.0

This commit is contained in:
Alexandre Archambault 2017-08-04 16:20:02 +02:00
parent a798b04d99
commit 4e74e7f66d
4 changed files with 19 additions and 2 deletions

View File

@ -22,12 +22,12 @@ object SbtCompatibility {
implicit class BinaryOps(private val binary: Binary) extends AnyVal {
def remapVersion(scalaBinaryVersion: String): String =
scalaBinaryVersion
binary.prefix + scalaBinaryVersion + binary.suffix
}
implicit class FullOps(private val full: Full) extends AnyVal {
def remapVersion(scalaVersion: String): String =
scalaVersion
full.prefix + scalaVersion + full.suffix
}
}

View File

@ -0,0 +1,3 @@
scalaVersion := "2.12.3"
enablePlugins(ScalaJSPlugin)
libraryDependencies += "org.scala-js" %%% "scalajs-java-time" % "0.2.2"

View File

@ -0,0 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.19")

View File

@ -0,0 +1 @@
> update