-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
79 lines (73 loc) · 3.11 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
lazy val commonSettings = Seq(
organization := "com.nulabinc",
version := "0.5.2-SNAPSHOT",
scalaVersion := "2.13.6",
scalacOptions ++= List(
"-feature",
"-unchecked",
"-deprecation",
"-language:higherKinds",
"-language:implicitConversions",
"-Ymacro-annotations",
"-Ywarn-unused"
),
libraryDependencies ++= {
val catsVersion = "2.8.0"
val monixVersion = "3.2.2"
val doobieVersion = "0.9.0"
val pekkoVersion = "1.0.3"
val pekkoHttpVersion = "1.0.1"
Seq(
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "cats-kernel" % catsVersion,
"io.monix" %% "monix" % monixVersion,
"io.monix" %% "monix-eval" % monixVersion,
"io.monix" %% "monix-reactive" % monixVersion,
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-hikari" % doobieVersion,
"org.apache.pekko" %% "pekko-actor" % pekkoVersion,
"org.apache.pekko" %% "pekko-stream" % pekkoVersion,
"org.apache.pekko" %% "pekko-slf4j" % pekkoVersion,
"org.apache.pekko" %% "pekko-http" % pekkoHttpVersion,
"org.xerial" % "sqlite-jdbc" % "3.36.0.3",
"com.nulab-inc" % "backlog4j" % "2.5.2",
"org.typelevel" %% "simulacrum" % "1.0.0",
"org.fusesource.jansi" % "jansi" % "2.4.0",
"com.osinka.i18n" %% "scala-i18n" % "1.0.3",
"ch.qos.logback" % "logback-classic" % "1.2.7",
"com.typesafe" % "config" % "1.4.1",
"com.google.inject" % "guice" % "5.0.1",
"io.spray" %% "spray-json" % "1.3.6",
"net.codingwell" %% "scala-guice" % "5.0.2",
"io.lemonlabs" %% "scala-uri" % "4.0.3",
"com.github.pathikrit" %% "better-files" % "3.9.1",
"com.chuusai" %% "shapeless" % "2.3.7",
"org.apache.commons" % "commons-csv" % "1.9.0",
"org.scalatest" %% "scalatest" % "3.1.0" % Test,
"org.tpolecat" %% "doobie-scalatest" % doobieVersion % "test"
)
},
// scalafix
addCompilerPlugin(scalafixSemanticdb),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
lazy val core = (project in file("core")).settings(commonSettings)
lazy val importer = (project in file("importer")).settings(commonSettings).dependsOn(core)
lazy val common = (project in file("."))
.settings(commonSettings)
.settings(
name := "backlog-migration-common"
)
.dependsOn(core, importer)
.aggregate(core, importer)
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
addCommandAlias(
"fixAll",
"all compile:scalafix; test:scalafix; scalafmt; test:scalafmt; scalafmtSbt"
)
addCommandAlias(
"checkAll",
"compile:scalafix --check; test:scalafix --check; scalafmtCheck; test:scalafmtCheck; scalafmtSbtCheck"
)
Global / onChangedBuildSource := IgnoreSourceChanges