-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
44 lines (40 loc) · 2.65 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
val springBootVersion = "3.2.0"
val jacksonVersion = "2.16.0"
Global / onChangedBuildSource := ReloadOnSourceChanges
lazy val root = project
.in(file("."))
.settings(
name := "spring-boot-scala-example",
version := "1.0.0-SNAPSHOT",
scalaVersion := "3.4.0-RC1-bin-20231218-ec2b8bc-NIGHTLY",
assembly / mainClass := Some("spring.boot.scala.example.ExampleApp"),
assembly / assemblyJarName := "spring-boot-scala-example.jar",
libraryDependencies += "org.springframework.boot" % "spring-boot-starter-web" % springBootVersion
exclude("org.springframework.boot", "spring-boot-starter-tomcat"),
libraryDependencies += "org.springframework.boot" % "spring-boot-starter-jetty" % springBootVersion,
libraryDependencies += "jakarta.servlet" % "jakarta.servlet-api" % "5.0.0",
libraryDependencies += "org.springframework.boot" % "spring-boot-starter-actuator" % springBootVersion,
libraryDependencies += "org.springframework.boot" % "spring-boot-starter-test" % springBootVersion % Test,
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion,
libraryDependencies += "com.fasterxml.jackson.module" % "jackson-module-scala_2.13" % jacksonVersion,
libraryDependencies += "org.scalactic" %% "scalactic" % "3.3.0-alpha.1",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.3.0-alpha.1" % Test,
libraryDependencies += "org.junit.jupiter" % "junit-jupiter-engine" % "5.10.1" % Test,
libraryDependencies += "net.aichler" % "jupiter-interface" % "0.11.1" % Test
)
ThisBuild / javacOptions ++= Seq("-source", "21")
ThisBuild / resolvers += Resolver.jcenterRepo
ThisBuild / assemblyMergeStrategy := {
case PathList(ps@_*) if ps.contains("module-info.class") => MergeStrategy.concat
case PathList("META-INF", "spring-configuration-metadata.json") => MergeStrategy.concat
case PathList("META-INF", "additional-spring-configuration-metadata.json") => MergeStrategy.concat
case PathList("META-INF", "spring.handlers") => MergeStrategy.concat
case PathList("META-INF", "spring.schemas") => MergeStrategy.concat
case PathList("META-INF", "spring.factories") => MergeStrategy.concat
case PathList("META-INF", "web-fragment.xml") => MergeStrategy.concat
case PathList("META-INF", "spring-autoconfigure-metadata.properties") => MergeStrategy.concat
case PathList("META-INF", "spring", "aot.factories") => MergeStrategy.concat
case PathList("META-INF", "spring", "org.springframework.boot.autoconfigure.AutoConfiguration.imports") => MergeStrategy.concat
case x => MergeStrategy.defaultMergeStrategy(x)
}