-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathjavaDropwizard.scala
More file actions
47 lines (39 loc) · 2.28 KB
/
javaDropwizard.scala
File metadata and controls
47 lines (39 loc) · 2.28 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
package dev.guardrail.sbt.modules
import dev.guardrail.sbt.Build._
import sbt._
import sbt.Keys._
object javaDropwizard {
val ahcVersion = "2.12.3"
val dropwizardVavrVersion = "1.3.0-4"
val dropwizardVersion = "5.0.2"
val javaxAnnotationVersion = "1.3.2"
val jaxbApiVersion = "2.3.1"
val jerseyVersion = "2.25.1"
val scalatestVersion = "3.2.18"
val vavrVersion = "0.10.3"
val dependencies = Seq(
"javax.annotation" % "javax.annotation-api" % javaxAnnotationVersion, // for jdk11
"javax.xml.bind" % "jaxb-api" % jaxbApiVersion, // for jdk11
"io.dropwizard" % "dropwizard-core" % dropwizardVersion,
"io.dropwizard" % "dropwizard-forms" % dropwizardVersion,
"org.asynchttpclient" % "async-http-client" % ahcVersion,
"junit" % "junit" % "4.13.2" % Test,
"nl.jqno.equalsverifier" % "equalsverifier" % "3.15.4" % Test,
"com.github.sbt" % "junit-interface" % "0.13.3" % Test,
"com.github.tomakehurst" % "wiremock" % "2.27.2" % Test,
"io.dropwizard" % "dropwizard-testing" % dropwizardVersion % Test,
"org.glassfish.jersey.test-framework.providers" % "jersey-test-framework-provider-grizzly2" % jerseyVersion % Test
) ++ Seq(
"org.mockito" %% "mockito-scala" % "1.17.30" % Test,
"org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2" % Test,
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
).map(_.cross(CrossVersion.for3Use2_13))
val dependenciesVavr = dependencies ++ Seq(
"io.vavr" % "vavr" % vavrVersion,
"io.vavr" % "vavr-jackson" % vavrVersion,
"io.dropwizard.modules" % "dropwizard-vavr" % dropwizardVavrVersion,
)
val project = commonModule("java-dropwizard")
val sample = buildSampleProject("dropwizard", dependencies).settings(scalacOptions -= "-Xfatal-warnings")
val sampleVavr = buildSampleProject("dropwizardVavr", dependenciesVavr).settings(scalacOptions -= "-Xfatal-warnings")
}