1- // sbt-imagej configuration keys
2- import ImageJKeys ._
3-
41// Project name
52name := " scala-console"
63
74// Publishing organization
85organization := " 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
1613scalaVersion <<= crossScalaVersions {versions => versions.head}
1714
@@ -25,14 +22,18 @@ mainClass in (Compile, packageBin) := Some("net.sf.ij_plugins.scala.console.Scal
2522mainClass in (Compile , run) := Some (" net.sf.ij_plugins.scala.console.ScalaConsoleApp" )
2623
2724libraryDependencies ++= 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+
3637resolvers += " 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.
4546shellPrompt in ThisBuild := { state => " sbt:" + Project .extract(state).currentRef.project + " > " }
4647
47- // sbt-imagej plugin
48- ijSettings
48+ enablePlugins(SbtImageJ )
4949
5050ijRuntimeSubDir := " sandbox"
5151
0 commit comments