-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
35 lines (29 loc) · 950 Bytes
/
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
import meth.sbt.libs._
name := "meth"
version := "0.0.5-SNAPSHOT"
scalaVersion := `scala-version`
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-Xfatal-warnings", // fail when there are warnings
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused-import"
)
Compile / console / scalacOptions ~= (_ filterNot (Set("-Xfatal-warnings", "-Ywarn-unused-import").contains))
libraryDependencies ++= Seq(
`scalaj-http`, xz, `fs2-core`, `scalaj-http`, scopt, pureconfig,
`jackson-core`, fastparse, scalatest
)
Compile / resources += baseDirectory.value/"README.md"
assembly / assemblyOption := (assembly / assemblyOption).value.copy(
prependShellScript = Some(
Seq("#!/usr/bin/env sh", """exec java -jar -XX:+UseG1GC $METH_JAVA_OPTS "$0" "$@"""")
)
)
assembly / assemblyJarName := s"${name.value}-${version.value}"