-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbuild.sbt
More file actions
76 lines (65 loc) · 1.77 KB
/
build.sbt
File metadata and controls
76 lines (65 loc) · 1.77 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
name := "sbt-dotenv"
organization := "nl.gn0s1s"
description :=
"An sbt plugin to load environment variables from .env into the JVM System Environment for local development. Assists with 'Twelve Factor App' development principle 3 'Store config in the environment'."
startYear := Some(2014)
homepage := Some(url("https://github.com/philippus/sbt-dotenv"))
licenses += ("MIT" -> url("http://opensource.org/licenses/MIT"))
developers := List(
Developer(
id = "Philippus",
name = "Philippus Baalman",
email = "",
url = url("https://github.com/philippus")
),
Developer(
id = "mefellows",
name = "Matt Fellows",
email = "",
url = url("http://www.onegeek.com.au")
)
)
enablePlugins(SbtPlugin)
addSbtPlugin("com.github.sbt" % "sbt2-compat" % "0.1.0")
scalaVersion := "2.12.21"
crossScalaVersions += "3.8.2"
scalacOptions ++= {
scalaBinaryVersion.value match {
case "2.12" => Seq("-release:8")
case _ => Nil
}
}
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-RC11"
}
}
scriptedSbt := {
scalaBinaryVersion.value match {
case "2.12" => "1.9.0"
case _ => "2.0.0-RC11"
}
}
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.20" % Test
)
enablePlugins(ScriptedPlugin)
scriptedLaunchOpts := {
if (System.getProperty("java.version").startsWith("1.")) {
scriptedLaunchOpts.value ++ Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value
)
} else {
scriptedLaunchOpts.value ++ Seq(
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang=ALL-UNNAMED",
"-Xmx1024M",
"-Dplugin.version=" + version.value
)
}
}
scriptedBufferLog := false