-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
73 lines (64 loc) · 2.36 KB
/
Copy pathbuild.sbt
File metadata and controls
73 lines (64 loc) · 2.36 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
import Dependencies._
ThisBuild / scalaVersion := "2.13.16"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.github.dataunitylab"
ThisBuild / organizationName := "Rochester Institute of Technology"
inThisBuild(
List(
organization := "io.github.dataunitylab",
homepage := Some(url("https://github.com/dataunitylab/jsonoid-server")),
licenses := List("MIT" -> url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(
"michaelmior",
"Michael Mior",
"mmior@mail.rit.edu ",
url("https://michael.mior.ca")
)
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
)
scalafixOnCompile := true
ThisBuild / scalafixDependencies += "net.pixiv" %% "scalafix-pixiv-rule" % "4.5.3"
Global / onChangedBuildSource := ReloadOnSourceChanges
val nonConsoleCompilerOptions = Seq(
"-feature",
"-Xfatal-warnings",
"-Ywarn-unused:imports",
"-Wconf:cat=unused-imports&site=<empty>:s", // Silence import warnings on Play `routes` files
"-Wconf:cat=unused-imports&site=router:s", // Silence import warnings on Play `routes` files
"-Wconf:cat=unused-imports&site=v1:s", // Silence import warnings on Play `v1.routes` files
"-Wconf:cat=unused-imports&site=v2:s", // Silence import warnings on Play `v2.routes` files
"-deprecation",
"-release:8"
)
lazy val root = (project in file("."))
.settings(
name := "jsonoid-server",
libraryDependencies ++= Seq(
guice,
jacksonModule,
jacksonDatabind,
jsonoid,
testPlusPlay % Test,
),
javacOptions ++= Seq("-source", "11", "-target", "11"),
scalacOptions ++= nonConsoleCompilerOptions,
buildInfoKeys := Seq[BuildInfoKey](version),
buildInfoPackage := "io.github.dataunitylab.jsonoid.server"
)
enablePlugins(PlayScala)
ThisBuild / assemblyShadeRules := Seq(
ShadeRule.rename("org.apache.commons.logging.**" -> "shadelogging.@1").inAll
)
assembly / assemblyMergeStrategy := {
case "module-info.class" => MergeStrategy.discard
case "META-INF/versions/9/module-info.class" => MergeStrategy.discard
case PathList("shadelogging", xs @ _*) => MergeStrategy.discard
case "play/reference-overrides.conf" => MergeStrategy.concat
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}