From 48b2062c9c59700487cf41676345cad2c739f7d2 Mon Sep 17 00:00:00 2001 From: kogecoo Date: Tue, 20 Jun 2017 22:16:52 +0900 Subject: [PATCH 1/3] Update version of Scala to 2.11.11. --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 744bb77..ee143d0 100644 --- a/build.sbt +++ b/build.sbt @@ -4,7 +4,7 @@ version := "2.0-SNAPSHOT" organization := "org.scalanlp" -scalaVersion := "2.11.8" +scalaVersion := "2.11.11" licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")) From bb98de665747e13ede63238df9bd42f81a7a0b0b Mon Sep 17 00:00:00 2001 From: kogecoo Date: Tue, 20 Jun 2017 22:20:40 +0900 Subject: [PATCH 2/3] Update version of ScalaTest to 3.0.3. --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index ee143d0..690d8f7 100644 --- a/build.sbt +++ b/build.sbt @@ -13,7 +13,7 @@ licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0" libraryDependencies ++= Seq( "org.scala-graph" %% "graph-core" % "1.11.4", "org.rogach" %% "scallop" % "2.0.6", - "org.scalatest" % "scalatest_2.10" % "1.9.1" % "test" + "org.scalatest" % "scalatest_2.10" % "3.0.3" % "test" ) enablePlugins(JavaAppPackaging) From f238197460e814b1648cbe65e1d68f990b9456fe Mon Sep 17 00:00:00 2001 From: kogecoo Date: Tue, 20 Jun 2017 22:25:30 +0900 Subject: [PATCH 3/3] Add cross build setting for 2.10.x, 2.11.x, 2.12.x. --- build.sbt | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 690d8f7..f87ce50 100644 --- a/build.sbt +++ b/build.sbt @@ -4,18 +4,31 @@ version := "2.0-SNAPSHOT" organization := "org.scalanlp" -scalaVersion := "2.11.11" +scalaVersion := scalaVersion_2_11 licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")) -//crossScalaVersions := Seq("2.10.6", "2.11.7") +crossScalaVersions := Seq(scalaVersion_2_10, scalaVersion_2_11, scalaVersion_2_12) libraryDependencies ++= Seq( - "org.scala-graph" %% "graph-core" % "1.11.4", "org.rogach" %% "scallop" % "2.0.6", - "org.scalatest" % "scalatest_2.10" % "3.0.3" % "test" + "org.scalatest" %% "scalatest" % "3.0.3" % "test" ) +libraryDependencies += scalaVersion { + // Versions of graph-core higher than 1.10.0 are not published for scala-2.10. + case `scalaVersion_2_10` => "com.assembla.scala-incubator" %% "graph-core" % "1.10.0" + case _ => "org.scala-graph" %% "graph-core" % "1.11.4" +}.value + + enablePlugins(JavaAppPackaging) mainClass in Compile := Some("junto.Junto") + +lazy val scalaVersion_2_10 = "2.10.6" + +lazy val scalaVersion_2_11 = "2.11.11" + +lazy val scalaVersion_2_12 = "2.12.2" +