forked from AlexITC/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbt.sh
26 lines (18 loc) · 794 Bytes
/
sbt.sh
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
# start sbt fast
sbt "set skip in update := true" compile
# enable remote debugging
sbt -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 run
# display dependency tree
sbt "inspect tree clean"
# install libs locally
set offline := true
publishM2
publishLocal
# run with a custom config (for typesafe config)
sbt -Dconfig.resource="custom.conf" run
# exclude files from compiling
excludeFilter := HiddenFileFilter || "example*"
# allows `sbt console` import packages without a fatal warning due to unused imports
scalacOptions in (Compile, console) ~= (_ filterNot (_ == "-Ywarn-unused-import"))
# exclude transitive dependencies while importing a library
libraryDependencies += "com.twitter" %% "finagle-thriftmux" % "6.16.0" exclude("org.slf4j", "slf4j-jdk14")