-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
69 lines (61 loc) · 2.81 KB
/
Copy pathbuild.sbt
File metadata and controls
69 lines (61 loc) · 2.81 KB
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
import com.typesafe.sbt.packager.Keys.makeBatScripts
ThisBuild / scalaVersion := "2.13.6"
ThisBuild / version := "1.0.0-SNAPSHOT"
ThisBuild / organization := "com.odealva"
ThisBuild / organizationName := "odealva"
val CirceVersion = "0.13.0"
val PureConfigVersion = "0.16.0"
val Fs2CronVersion = "0.2.2"
val SttpVersion = "2.2.9"
val CatsVersion = "2.2.0"
val CatsEffectVersion = "2.2.0"
val ScalatagsVersion = "0.9.4"
val CourierVersion = "2.0.0"
val OsLibVersion = "0.7.8"
val CanoeVersion = "0.5.1"
lazy val root = (project in file("."))
.settings(
name := "pocket-reminder"
)
.aggregate(core, console, docker)
lazy val core = (project in file("core"))
.settings(
name := "pocket-library",
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % CirceVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"io.circe" %% "circe-parser" % CirceVersion,
"org.typelevel" %% "cats-core" % CatsVersion,
"org.typelevel" %% "cats-effect" % CatsEffectVersion,
"com.softwaremill.sttp.client" %% "core" % SttpVersion,
"com.softwaremill.sttp.client" %% "circe" % SttpVersion,
"com.softwaremill.sttp.client" %% "cats" % SttpVersion,
"com.softwaremill.sttp.client" %% "async-http-client-backend-cats" % SttpVersion,
"com.lihaoyi" %% "os-lib" % OsLibVersion,
"com.github.daddykotex" %% "courier" % CourierVersion,
"com.lihaoyi" %% "scalatags" % ScalatagsVersion,
"eu.timepit" %% "fs2-cron-core" % Fs2CronVersion,
"com.github.pureconfig" %% "pureconfig" % PureConfigVersion,
"com.github.pureconfig" %% "pureconfig-cron4s" % PureConfigVersion,
"org.augustjune" %% "canoe" % CanoeVersion
)
)
lazy val console = (project in file("console"))
.settings(
name := "pocket-console-client"
)
.dependsOn(core)
import com.typesafe.sbt.packager.docker._
lazy val docker = (project in file("."))
.aggregate(core, console)
.enablePlugins(DockerPlugin)
.enablePlugins(AshScriptPlugin)
.settings(
name := "RemindMe! Pocket",
packageName in Docker := "pocket-reminder",
Defaults.itSettings,
dockerBaseImage := "openjdk:8u201-jre-alpine3.9",
dockerUpdateLatest := true,
makeBatScripts := Seq()
)
// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.