Skip to content

Commit

Permalink
Add support for sbt 1.0.0-RC3 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored and densh committed Aug 7, 2017
1 parent 447264d commit 04cbbb4
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 7 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 "++ 2.12.3" "^^ 1.0.0-RC3" sbt-crossproject/publishLocal

cache:
directories:
Expand Down
1 change: 0 additions & 1 deletion project/Extra.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ object Extra {
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sbtcrossproject

import sbt._
import StringUtilities.nonEmpty

final class CrossGroupArtifactID(groupID: String,
artifactID: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sbtcrossproject

import sbt._
import StringUtilities.nonEmpty

import scala.language.experimental.macros
import scala.reflect.macros.Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sbtcrossproject

import sbt._
import sbt.KeyRanks.BSetting
import StringUtilities.nonEmpty

import scala.language.implicitConversions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,7 @@ trait CrossProjectExtra {

def crossProject(platforms: Platform*): CrossProject.Builder =
macro CrossProjectExtra.vargCrossProject_impl

private[sbtcrossproject] def nonEmpty(s: String, label: String): Unit =
require(s.trim.length > 0, label + " cannot be empty.")
}
2 changes: 0 additions & 2 deletions sbt-crossproject/src/main/scala/sbtcrossproject/package.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import sbt._
import scala.language.implicitConversions

import StringUtilities.nonEmpty

package object sbtcrossproject extends CrossProjectExtra

0 comments on commit 04cbbb4

Please sign in to comment.