-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
executable file
·133 lines (116 loc) · 4.29 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import sbt._
//settings
name := """scala-utils"""
val releaseVersion = "2.0.12"
val token = sys.env.getOrElse("GITHUB_TOKEN", "")
val githubSettings = Seq(
githubOwner := "innFactory",
githubRepository := "de.innfactory.scala-utils",
githubRepository := "scala-utils",
githubTokenSource := TokenSource.GitConfig("github.token") || TokenSource.Environment("GITHUB_TOKEN"),
credentials :=
Seq(
Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"innFactory",
token
)
)
)
val defaultProjectSettings = Seq(
scalaVersion := "2.13.8",
organization := "de.innfactory.scala-utils",
version := releaseVersion,
githubOwner := "innFactory"
) ++ githubSettings
val sharedSettings = defaultProjectSettings
val sangria = "org.sangria-graphql" %% "sangria" % "2.0.0"
val sangriaMarshallingApi = "org.sangria-graphql" %% "sangria-marshalling-api" % "1.0.4"
val sangriaSlowlog = "org.sangria-graphql" %% "sangria-slowlog" % "2.0.0-M1"
lazy val utilGraphQL = (project in file("util-graphql"))
.settings(
sharedSettings
)
.settings(
name := "graphql",
libraryDependencies ++= Seq(
typesafePlay,
playJson,
sangria,
sangriaMarshallingApi,
sangriaSlowlog
)
)
lazy val utilImplicits = (project in file("util-implicits")).settings(
sharedSettings
) settings (
name := "util-implicits"
)
val slickPgJts = "com.github.tminglei" %% "slick-pg_jts" % "0.22.2"
val slick = "com.typesafe.slick" %% "slick" % "3.5.1"
val slickCodegen = "com.typesafe.slick" %% "slick-codegen" % "3.5.1"
val slickHikaricp = "com.typesafe.slick" %% "slick-hikaricp" % "3.5.1"
val hikariCP = "com.zaxxer" % "HikariCP" % "5.1.0"
val slickPg = "com.github.tminglei" %% "slick-pg" % "0.22.2"
val slickPgPlayJson = "com.github.tminglei" %% "slick-pg_play-json" % "0.22.2"
val flyWayCore = "org.flywaydb" % "flyway-core" % "8.4.1"
val playVersion = "2.9.0-RC2"
val typesafePlay = "com.typesafe.play" %% "play" % playVersion
val playWs = "com.typesafe.play" %% "play-ws" % playVersion
val playJson = "com.typesafe.play" %% "play-json" % "2.9.2"
val opentelemetryApi = "io.opentelemetry" % "opentelemetry-api" % "1.18.0"
val opentelemetryBom = "io.opentelemetry" % "opentelemetry-bom" % "1.18.0"
val opentelemetrySdk = "io.opentelemetry" % "opentelemetry-sdk" % "1.18.0"
val opentelemetryInMemoryExporter = "io.opentelemetry" % "opentelemetry-exporter-logging" % "1.19.0"
val cats = "org.typelevel" %% "cats-core" % "2.7.0"
val googleCloudLogger = "com.google.cloud" % "google-cloud-logging-logback" % "0.120.0-alpha"
val googleCloudLogging = "com.google.cloud" % "google-cloud-logging" % "3.5.1"
val javaxactiviation = "javax.activation" % "activation" % "1.1.1"
val sl4j = "org.slf4j" % "slf4j-api" % "1.7.32"
val sharedDeps = "com.google.cloud" % "google-cloud-shared-dependencies" % "2.5.1"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.10"
val logbackCore = "ch.qos.logback" % "logback-core" % "1.2.10"
val smithy4play = "de.innfactory" %% "smithy4play" % "0.4.3"
val guice = "com.google.inject" % "guice" % "4.2.3"
lazy val play = (project in file("util-play"))
.settings(
sharedSettings
)
.settings(
name := "play",
libraryDependencies ++= Seq(
googleCloudLogger,
googleCloudLogging,
javaxactiviation,
sl4j,
sharedDeps,
logback,
logbackCore,
cats,
playJson,
typesafePlay,
slickPg,
slickPgPlayJson,
slick,
slickCodegen,
slickHikaricp,
hikariCP,
flyWayCore,
guice,
playWs,
smithy4play,
slickPgJts,
opentelemetryApi,
opentelemetryBom,
opentelemetrySdk,
opentelemetryInMemoryExporter
)
)
.dependsOn(utilImplicits)
.aggregate(utilImplicits)
lazy val root = project
.in(file("."))
.settings(sharedSettings)
.dependsOn(play, utilGraphQL, utilImplicits)
.aggregate(play, utilGraphQL, utilImplicits)