Skip to content

Commit

Permalink
support sbt 1.0.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jul 17, 2017
1 parent 447264d commit aa03002
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ before_script:
script:
- java -version
- bin/scalafmt --test && sbt sbt-crossproject-test/scripted
- sbt "^^ 1.0.0-RC2" sbt-crossproject/compile

cache:
directories:
Expand Down
18 changes: 16 additions & 2 deletions project/Extra.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,25 @@ import bintray.BintrayKeys.{bintrayRepository, bintrayOrganization}

object Extra {

val sbtPluginSettings = ScriptedPlugin.scriptedSettings ++ Seq(
val sbtPluginSettings = ScriptedPlugin.scriptedSettings.filterNot(_.key.key.label == libraryDependencies.key.label) ++ Seq(
// https://github.com/sbt/sbt/issues/3325
libraryDependencies ++= {
CrossVersion.binarySbtVersion(scriptedSbt.value) match {
case "0.13" =>
Seq(
"org.scala-sbt" % "scripted-sbt" % scriptedSbt.value % scriptedConf.toString,
"org.scala-sbt" % "sbt-launch" % scriptedSbt.value % scriptedLaunchConf.toString
)
case _ =>
Seq(
"org.scala-sbt" %% "scripted-sbt" % scriptedSbt.value % scriptedConf.toString,
"org.scala-sbt" % "sbt-launch" % scriptedSbt.value % scriptedLaunchConf.toString
)
}
},
organization := "org.scala-native",
version := "0.2.0",
sbtPlugin := true,
scalaVersion := "2.10.6",
scriptedLaunchOpts += "-Dplugin.version=" + version.value,
scalacOptions ++= Seq(
"-deprecation",
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.15
sbt.version=0.13.16-M1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package sbt

object StringUtilities {
def nonEmpty(s: String, label: String): Unit =
sbt.internal.librarymanagement.StringUtilities.nonEmpty(s, label)
}

0 comments on commit aa03002

Please sign in to comment.