Merge pull request #126 from xuwei-k/remove-sbt-cross

remove sbt-cross-building, add .travis.yml
This commit is contained in:
Johannes Rudolph 2017-06-06 18:10:41 +02:00 committed by GitHub
commit c2193cea09
4 changed files with 12 additions and 24 deletions

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
sudo: false
language: scala
jdk: oraclejdk7
script:
- sbt test scripted

View File

@ -1,28 +1,9 @@
crossBuildingSettings
CrossBuilding.crossSbtVersions := Seq("0.13")
CrossBuilding.scriptedSettings
ScriptedPlugin.scriptedSettings
libraryDependencies += "com.github.mdr" %% "ascii-graphs" % "0.0.3"
libraryDependencies <++= scalaVersion { version =>
if (version startsWith "2.1") Seq("org.scala-lang" % "scala-reflect" % version % "provided")
else Nil
}
libraryDependencies <+= scalaVersion { version =>
if (version startsWith "2.9") "org.specs2" % "specs2_2.9.3" % "1.12.4.1" % "test"
else "org.specs2" %% "specs2" % "2.3.11" % "test"
}
libraryDependencies += "org.specs2" %% "specs2" % "2.3.11" % "test"
scalacOptions ++= Seq("-deprecation", "-unchecked")
sbt.CrossBuilding.latestCompatibleVersionMapper ~= {
original => {
case "0.13" => "0.13.6"
case x => original(x)
}
}
ScalariformSupport.formatSettings
ScalariformSupport.formatSettings

View File

@ -1,3 +1,3 @@
addSbtPlugin("net.virtual-void" % "sbt-cross-building" % "0.8.1")
libraryDependencies += "org.scala-sbt" % "scripted-plugin" % sbtVersion.value
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.1")

View File

@ -1,5 +1,7 @@
scalaVersion := "2.9.1"
resolvers += "typesafe maven" at "http://repo.typesafe.com/typesafe/maven-releases/"
libraryDependencies ++= Seq(
"com.codahale" % "jerkson_2.9.1" % "0.5.0"
)