-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathjavaSpringMvc.scala
More file actions
28 lines (22 loc) · 1.18 KB
/
javaSpringMvc.scala
File metadata and controls
28 lines (22 loc) · 1.18 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
package dev.guardrail.sbt.modules
import dev.guardrail.sbt.Build._
import sbt._
import sbt.Keys._
object javaSpringMvc {
val javaxAnnotationVersion = "1.3.2"
val scalatestVersion = "3.2.20"
val springBootVersion = "2.7.18"
val dependencies = Seq(
"org.springframework.boot" % "spring-boot-starter-web" % springBootVersion,
"javax.annotation" % "javax.annotation-api" % javaxAnnotationVersion, // for jdk11
"javax.validation" % "validation-api" % "2.0.1.Final",
"junit" % "junit" % "4.13.2" % Test,
"org.springframework.boot" % "spring-boot-starter-test" % springBootVersion % Test,
) ++ Seq(
"org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2" % Test,
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
"org.mockito" %% "mockito-scala" % "1.17.30" % Test,
).map(_.cross(CrossVersion.for3Use2_13))
val project = commonModule("java-spring-mvc")
val sample = buildSampleProject("springMvc", dependencies).settings(scalacOptions -= "-Xfatal-warnings")
}