mirror of https://github.com/sbt/sbt.git
Take into account new cross version fields in sbt 1.0
This commit is contained in:
parent
a798b04d99
commit
4e74e7f66d
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
scalaVersion := "2.12.3"
|
||||
enablePlugins(ScalaJSPlugin)
|
||||
libraryDependencies += "org.scala-js" %%% "scalajs-java-time" % "0.2.2"
|
||||
|
|
@ -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")
|
||||
|
|
@ -0,0 +1 @@
|
|||
> update
|
||||
Loading…
Reference in New Issue