This repository was archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
102 lines (85 loc) · 3.56 KB
/
build.sbt
File metadata and controls
102 lines (85 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
cancelable := true
developers := List(
Developer("mslinn",
"Mike Slinn",
"mslinn@micronauticsresearch.com",
url("https://github.com/mslinn")
)
)
fork in Test := true // https://stackoverflow.com/a/23575337/553865; forked tests prevents IDEA from attaching a debugger when launching tests via sbt tasks
// define the statements initially evaluated when entering 'console', 'console-quick', but not 'console-project'
initialCommands in console := """val js: com.micronautics.cli.JavaScriptEvaluator = new com.micronautics.cli.JavaScriptEvaluator()
|js.eval("var x = 1")
|js.show("x")
|js.show("x = x + 1")
|js.put("y", 99)
|js.show("y")
|val z = js.get("y")
|""".stripMargin
javacOptions ++= Seq(
"-Xlint:deprecation",
"-Xlint:unchecked",
"-source", "1.8",
"-target", "1.8",
"-g:vars"
)
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.twitter" %% "chill" % "0.9.1",
"io.circe" %% "circe-config" % "0.3.0" withSources(),
"io.circe" %% "circe-generic" % "0.8.0" withSources(),
"org.codehaus.groovy" % "groovy-all" % "2.4.13" withSources(),
"org.jline" % "jline" % "3.5.1" withSources(),
// "org.jetbrains.kotlin" % "kotlin-stdlib" % "1.2.0" withSources(),
// "org.jetbrains.kotlin" % "kotlin-script-util" % "1.2.0" withSources(),
// "org.jetbrains.kotlin" % "kotlin-script-runtime" % "1.2.0" withSources(),
"org.jruby" % "jruby-complete" % "9.1.14.0" withSources(),
"org.eclipse.jgit" % "org.eclipse.jgit" % "4.9.0.201710071750-r" withSources(),
"org.scijava" % "jython-shaded" % "2.7.1" withSources(),
"org.scijava" % "scripting-clojure" % "0.1.6" withSources(),
"org.scijava" % "scripting-java" % "0.4.1" withSources(),
"org.scijava" % "scripting-scala" % "0.2.1" withSources(),
//
"org.scalatest" %% "scalatest" % "3.0.3" % Test withSources(),
"junit" % "junit" % "4.12" % Test
)
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
logLevel := Level.Warn
// Only show warnings and errors on the screen for compilations.
// This applies to both test:compile and compile and is Info by default
logLevel in compile := Level.Warn
// Level.INFO is needed to see detailed output when running tests
logLevel in test := Level.Debug
name := "cli-loop"
organization := "com.micronautics"
resolvers ++= Seq(
"ImageJ Releases repository" at "http://maven.imagej.net/content/repositories/releases/"
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-target:jvm-1.8",
"-unchecked",
"-Ywarn-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-value-discard",
"-Xfuture",
"-Xlint"
)
scalacOptions in (Compile, doc) ++= baseDirectory.map {
(bd: File) => Seq[String](
"-sourcepath", bd.getAbsolutePath,
"-doc-source-url", "https://github.com/mslinn/cli-loop/tree/master€{FILE_PATH}.scala"
)
}.value
scalaVersion := "2.12.4"
scmInfo := Some(
ScmInfo(
url(s"https://github.com/mslinn/$name"),
s"git@github.com:mslinn/$name.git"
)
)
version := "0.2.4"