Skip to content

Commit e97525c

Browse files
committed
Use Scala 2.11 as default, update dependencies.
1 parent 78477ea commit e97525c

File tree

4 files changed

+15
-77
lines changed

4 files changed

+15
-77
lines changed

scala-console/build.sbt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
// sbt-imagej configuration keys
2-
import ImageJKeys._
3-
41
// Project name
52
name := "scala-console"
63

74
// Publishing organization
85
organization := "net.sf.ij-plugins"
96

107
// Current version
11-
version := "1.1.2"
8+
version := "1.1.3"
129

1310
// Version of scala to use
14-
crossScalaVersions := Seq("2.10.3", "2.9.3")
11+
crossScalaVersions := Seq("2.11.7", "2.10.6", "2.9.3")
1512

1613
scalaVersion <<= crossScalaVersions {versions => versions.head}
1714

@@ -25,14 +22,18 @@ mainClass in (Compile, packageBin) := Some("net.sf.ij_plugins.scala.console.Scal
2522
mainClass in (Compile, run) := Some("net.sf.ij_plugins.scala.console.ScalaConsoleApp")
2623

2724
libraryDependencies ++= Seq(
28-
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
29-
"org.scala-lang" % "scala-swing" % scalaVersion.value,
30-
"net.imagej" % "ij" % "1.47v",
31-
"com.fifesoft" % "rsyntaxtextarea" % "2.0.6",
32-
"junit" % "junit" % "4.11" % "test",
33-
"com.novocode" % "junit-interface" % "0.10" % "test"
25+
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
26+
"net.imagej" % "ij" % "1.49v",
27+
"com.fifesoft" % "rsyntaxtextarea" % "2.0.7",
28+
"junit" % "junit" % "4.12" % "test",
29+
"com.novocode" % "junit-interface" % "0.11" % "test"
3430
)
3531

32+
libraryDependencies ++= (if (scalaVersion.value.startsWith("2.11."))
33+
Seq("org.scala-lang.modules" %% "scala-swing" % "1.0.2")
34+
else
35+
Seq("org.scala-lang" % "scala-swing" % scalaVersion.value))
36+
3637
resolvers += "ImageJ Releases" at "http://maven.imagej.net/content/repositories/releases/"
3738

3839
// fork a new JVM for 'run' and 'test:run'
@@ -44,8 +45,7 @@ javaOptions += "-Xmx2G"
4445
// Set the prompt (for this build) to include the project id.
4546
shellPrompt in ThisBuild := { state => "sbt:"+Project.extract(state).currentRef.project + "> " }
4647

47-
// sbt-imagej plugin
48-
ijSettings
48+
enablePlugins(SbtImageJ)
4949

5050
ijRuntimeSubDir := "sandbox"
5151

scala-console/project/MyBuild.scala

Lines changed: 0 additions & 58 deletions
This file was deleted.

scala-console/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
# Latest release available at http://sourceforge.net/projects/ij-plugins/
2121
#
2222

23-
sbt.version=0.13.1
23+
sbt.version=0.13.9
2424

scala-console/project/plugin.sbt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@ resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repos
22

33
scalacOptions ++= Seq("-unchecked", "-deprecation")
44

5-
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")
6-
7-
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
8-
9-
addSbtPlugin("net.sf.ij-plugins" % "sbt-imagej" % "1.1.0")
5+
addSbtPlugin("net.sf.ij-plugins" % "sbt-imagej" % "2.0.0")

0 commit comments

Comments
 (0)