-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (61 loc) · 1.88 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
// *****************************************************************************
// Build settings
// *****************************************************************************
inThisBuild(
Seq(
version := "0.0.1",
organization := "com.robinraju",
organizationName := "Robin Raju",
scalaVersion := "3.4.2",
semanticdbEnabled := true,
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-Wunused:implicits",
"-Wunused:explicits",
"-Wunused:imports",
"-Wunused:locals",
"-Wunused:params",
"-Wunused:privates",
"-Wvalue-discard",
"-Ykind-projector:underscores",
"-rewrite",
"-source",
"3.4-migration"
),
scalafmtOnCompile := true,
fork := true
)
)
// *****************************************************************************
// Projects
// *****************************************************************************
lazy val root = (project in file("."))
.settings(
name := "file-splitter",
libraryDependencies ++= Dependencies.libraries,
Compile / run / mainClass := Some("com.robinraju.filesplitter.Main")
)
.settings(buildInfoSettings("file-splitter"))
.enablePlugins(BuildInfoPlugin, JavaAppPackaging)
// *****************************************************************************
// Project settings
// *****************************************************************************
def buildInfoSettings(moduleName: String): Def.SettingsDefinition = Seq(
buildInfoKeys := Seq[BuildInfoKey](
"name" -> moduleName,
version,
scalaVersion,
sbtVersion,
organizationName
),
buildInfoPackage := s"com.robinraju.filesplitter.build",
buildInfoOptions += BuildInfoOption.BuildTime
)
addCommandAlias(
name = "fixall",
value = "scalafmtAll ;scalafixAll ;reload"
)