-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
80 lines (69 loc) · 2.25 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
68
69
70
71
72
73
74
75
76
77
78
79
80
import sbt.Keys.scalaVersion
import com.github.zorechka.Dependencies._
name := "zorechka-bot"
val settings = Seq(
scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.11.12", "2.12.6", "2.13.0-M4"),
organization := "com.wix.zorechka-bot",
homepage := Some(url("https://github.com/wix-incubator/zorechka-bot")),
scmInfo := Some(ScmInfo(url("https://github.com/wix-incubator/zorechka-bot"), "[email protected]:wix-incubator/zorechka-bot.git")),
licenses := Seq("Apache-2.0" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")),
publishMavenStyle := true
)
test in assembly := {}
assemblyJarName in assembly := s"app.jar"
assemblyMergeStrategy in assembly := {
case PathList("reference.conf") => MergeStrategy.concat
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case _ => MergeStrategy.first
}
resolvers ++= Seq(
"Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
"Secured Central Repository" at "https://repo1.maven.org/maven2",
Resolver.sonatypeRepo("snapshots")
)
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation"
, "-unchecked"
, "-encoding", "UTF-8"
, "-Xlint"
, "-Xverify"
, "-feature"
,"-Ypartial-unification"
,"-Xfatal-warnings"
, "-language:_"
//,"-optimise"
)
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7")
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.6")
lazy val core = project
.settings(settings)
.settings(
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
libraryDependencies ++= Seq(
C.mavenArtifact,
C.config,
C.scalazZio,
C.scalazZioInteropCats,
C.scalazZioTest,
C.scalazZioTestSbt,
C.mysql,
C.flyway,
T.specs2
) ++ C.circe_all ++ C.cats_all ++ C.http4s_all ++ C.doobie_all)
lazy val app = project
.settings(settings)
.settings(
mainClass in assembly := Some("com.wix.zorechka.StartApp"),
assemblyJarName in assembly := "app.jar"
)
.dependsOn(core)
lazy val root = project.in(file("."))
.aggregate(core, app)