-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
54 lines (40 loc) · 2.35 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
name := """tapir-play-sample"""
organization := "com.github.gaeljw"
lazy val root = (project in file("."))
.enablePlugins(PlayScala)
.settings(
publishArtifact := false
)
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo")))
scalaVersion := "3.5.1"
val tapirVersion = "1.11.7"
val jacksonVersion = "2.18.0"
libraryDependencies += guice
libraryDependencies += ws
// Tapir
libraryDependencies += "com.softwaremill.sttp.tapir" %% "tapir-core" % tapirVersion
libraryDependencies += "com.softwaremill.sttp.tapir" %% "tapir-play-server" % tapirVersion
// JSON handling (you can use Circe instead of Play-JSON)
libraryDependencies += "com.softwaremill.sttp.tapir" %% "tapir-json-play" % tapirVersion
// Tapir OpenAPI
libraryDependencies += "com.softwaremill.sttp.tapir" %% "tapir-openapi-docs" % tapirVersion
// Swagger UI
// You can also host Swagger UI by yourself and get rid of this dependency with more manual setup
libraryDependencies += "com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % tapirVersion
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test
// For Akka Streams (if using streaming)
libraryDependencies += "com.softwaremill.sttp.shared" %% "pekko" % "1.3.22"
// Adds additional packages into Twirl
//TwirlKeys.templateImports += "com.github.gaeljw.controllers._"
// Adds additional packages into conf/routes
// play.sbt.routes.RoutesKeys.routesImport += "com.github.gaeljw.binders._"
// Enforce Jackson consistency
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.module" % "jackson-module-parameter-names" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.module" % "jackson-module-paranamer" % jacksonVersion
dependencyOverrides += "com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion