forked from gvolpe/pfps-shopping-cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
90 lines (83 loc) · 2.82 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
81
82
83
84
85
86
87
88
89
90
import Dependencies._
ThisBuild / scalaVersion := "2.13.4"
ThisBuild / version := "0.2.0"
ThisBuild / organization := "dev.profunktor"
ThisBuild / organizationName := "ProfunKtor"
ThisBuild / scalafixDependencies += Libraries.organizeImports
resolvers += Resolver.sonatypeRepo("snapshots")
lazy val root = (project in file("."))
.settings(
name := "shopping-cart"
)
.aggregate(core, tests)
lazy val tests = (project in file("modules/tests"))
.configs(IntegrationTest)
.settings(
name := "shopping-cart-test-suite",
scalacOptions ++= List("-Ymacro-annotations", "-Yrangepos", "-Wconf:cat=unused:info"),
scalafmtOnCompile := true,
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
testFrameworks += new TestFramework("munit.Framework"),
Defaults.itSettings,
libraryDependencies ++= Seq(
CompilerPlugin.kindProjector,
CompilerPlugin.betterMonadicFor,
CompilerPlugin.semanticDB,
Libraries.munitCore,
Libraries.munitScalacheck
)
)
.dependsOn(core)
lazy val core = (project in file("modules/core"))
.enablePlugins(DockerPlugin)
.enablePlugins(AshScriptPlugin)
.settings(
name := "shopping-cart-core",
packageName in Docker := "shopping-cart",
scalacOptions ++= List("-Ymacro-annotations", "-Yrangepos", "-Wconf:cat=unused:info"),
scalafmtOnCompile := true,
resolvers += Resolver.sonatypeRepo("snapshots"),
Defaults.itSettings,
dockerBaseImage := "openjdk:8u201-jre-alpine3.9",
dockerExposedPorts ++= Seq(8080),
makeBatScripts := Seq(),
dockerUpdateLatest := true,
libraryDependencies ++= Seq(
CompilerPlugin.kindProjector,
CompilerPlugin.betterMonadicFor,
CompilerPlugin.semanticDB,
Libraries.cats,
Libraries.catsEffect,
Libraries.catsMeowMtl,
Libraries.catsRetry,
Libraries.circeCore,
Libraries.circeGeneric,
Libraries.circeParser,
Libraries.circeRefined,
Libraries.cirisCore,
Libraries.cirisEnum,
Libraries.cirisRefined,
Libraries.derevoCore,
Libraries.derevoCats,
Libraries.derevoCirce,
Libraries.fs2,
Libraries.http4sDsl,
Libraries.http4sServer,
Libraries.http4sClient,
Libraries.http4sCirce,
Libraries.http4sJwtAuth,
Libraries.javaxCrypto,
Libraries.log4cats,
Libraries.logback % Runtime,
Libraries.newtype,
Libraries.redis4catsEffects,
Libraries.redis4catsLog4cats,
Libraries.refinedCore,
Libraries.refinedCats,
Libraries.skunkCore,
Libraries.skunkCirce,
Libraries.squants
)
)
addCommandAlias("runLinter", ";scalafixAll --rules OrganizeImports")