Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 1506814

Browse files
committed
Exclude json lib from bootstrap assembly
1 parent 85aeaf8 commit 1506814

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

bootstrap/build.sbt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@ name := "chatoverflow-bootstrap"
22
version := "0.1"
33
assemblyJarName in assembly := "ChatOverflow.jar"
44

5-
libraryDependencies += "org.jline" % "jline-terminal-jansi" % "3.11.0" // used for terminal width
6-
libraryDependencies += "io.get-coursier" %% "coursier" % "2.0.0-RC3-2" // Coursier is used to download the deps of the framework
5+
// JLine is used for terminal width
6+
libraryDependencies += "org.jline" % "jline-terminal-jansi" % "3.11.0"
7+
8+
// Coursier is used to download the deps of the framework
9+
// Excluding argonaut and it's dependencies because we don't use any json with Coursier and that way we are able
10+
// to reduce the assembly jar file size from about 17MB (way too big) to only 8,8 MB, which is acceptable.
11+
libraryDependencies += "io.get-coursier" %% "coursier" % "2.0.0-RC3-2" excludeAll(
12+
ExclusionRule(organization = "org.scala-lang", name = "scala-reflect"),
13+
ExclusionRule(organization = "io.argonaut", name = "argonaut_2.12"),
14+
ExclusionRule(organization = "com.chuusai", name = "shapeless_2.12"),
15+
ExclusionRule(organization = "com.github.alexarchambault", name = "argonaut-shapeless_6.2_2.12")
16+
)
17+
718
fork := true
819

920
packageBin / includePom := false

0 commit comments

Comments
 (0)