forked from sbt/sbt-fresh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
69 lines (60 loc) · 1.83 KB
/
build.sbt
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
// *****************************************************************************
// Projects
// *****************************************************************************
lazy val `sbt-fresh` =
project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin, SbtPlugin)
.settings(settings)
.settings(
addSbtPlugin(library.sbtGit),
)
// *****************************************************************************
// Library dependencies
// *****************************************************************************
lazy val library =
new {
object Version {
val sbtGit = "1.0.0",
}
val sbtGit = "com.typesafe.sbt" % "sbt-git" % Version.sbtGit
}
// *****************************************************************************
// Settings
// *****************************************************************************
lazy val settings =
commonSettings ++
scalafmtSettings ++
sbtScriptedSettings
lazy val commonSettings =
Seq(
// scalaVersion from .travis.yml via sbt-travisci
// scalaVersion := "2.12.3",
organization := "inanme",
organizationName := "Heiko Seeberger",
startYear := Some(2016),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:_",
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-Ypartial-unification",
"-Ywarn-unused-import"
),
Compile / unmanagedSourceDirectories := Seq((Compile / scalaSource).value),
Test / unmanagedSourceDirectories := Seq((Test / scalaSource).value),
publishMavenStyle := false,
)
lazy val scalafmtSettings =
Seq(
scalafmtOnCompile := true,
)
lazy val sbtScriptedSettings =
Seq(
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
s"-Dplugin.version=${version.value}",
)
)