Skip to content

Commit 941fefd

Browse files
author
Hariharan Ramanathan
committed
- Upgraded play-bootstrap to 1.5-P27-B3
- Upgraded jackson-databind to 2.9.10.1 - Upgraded akka http spray json to 10.1.6 - Excluded some vulnearable jars transitive jar and added upgraded the dependency
1 parent a449878 commit 941fefd

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

build.sbt

+27-22
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ version := "1.0.0"
1111
scalaVersion := "2.12.4"
1212

1313
lazy val management = (project in file(".")).enablePlugins(SbtWeb).enablePlugins(PlayScala)
14-
.enablePlugins(BuildInfoPlugin).
15-
settings(
16-
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
17-
buildInfoPackage := "de.upb.cs.swt.delphi.management",
18-
(scalastyleSources in Compile) := {
19-
// all .scala files in "src/main/scala"
20-
val scalaSourceFiles = ((scalaSource in Compile).value ** "*.scala").get
21-
val fSep = java.io.File.separator // "/" or "\"
22-
val dirNameToExclude = "app" + fSep + "models" // "com/folder_to_exclude"
23-
scalaSourceFiles.filterNot(_.getAbsolutePath.contains(dirNameToExclude))
24-
}
25-
)
14+
.enablePlugins(BuildInfoPlugin).
15+
settings(
16+
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
17+
buildInfoPackage := "de.upb.cs.swt.delphi.management",
18+
(scalastyleSources in Compile) := {
19+
// all .scala files in "src/main/scala"
20+
val scalaSourceFiles = ((scalaSource in Compile).value ** "*.scala").get
21+
val fSep = java.io.File.separator // "/" or "\"
22+
val dirNameToExclude = "app" + fSep + "models" // "com/folder_to_exclude"
23+
scalaSourceFiles.filterNot(_.getAbsolutePath.contains(dirNameToExclude))
24+
}
25+
)
2626

2727
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml"
2828

2929
val conf = ConfigFactory.parseFile(new File("conf/application.conf")).resolve()
30-
val appPortManagement = conf.getString("app.portManagement")
30+
val appPortManagement = conf.getString("app.portManagement")
3131

3232
PlayKeys.devSettings := Seq(
33-
"play.server.http.port" -> appPortManagement
33+
"play.server.http.port" -> appPortManagement
3434
)
35-
pipelineStages := Seq(digest,gzip)
35+
pipelineStages := Seq(digest, gzip)
3636

3737
resolvers += Resolver.sonatypeRepo("snapshots")
3838
resolvers += Resolver.jcenterRepo
@@ -41,13 +41,18 @@ libraryDependencies += guice
4141
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
4242
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.1"
4343
libraryDependencies += "com.iheart" %% "ficus" % "1.4.3"
44-
libraryDependencies += "org.webjars" % "bootstrap" % "4.1.0"
45-
libraryDependencies += "org.webjars" %% "webjars-play" % "2.7.0"
46-
libraryDependencies += "com.adrianhurt" %% "play-bootstrap" % "1.4-P26-B4-SNAPSHOT"
44+
libraryDependencies += "org.webjars" % "bootstrap" % "4.3.1" exclude("org.webjars", "jquery")
45+
//Snyk vulnerability
46+
libraryDependencies += "org.webjars" % "jquery" % "3.4.0"
47+
libraryDependencies += "org.webjars" %% "webjars-play" % "2.7.3" exclude("com.fasterxml.jackson.core", "jackson-databind")
48+
//Snyk vulnerability high severity
49+
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.10.1"
50+
libraryDependencies += "com.adrianhurt" %% "play-bootstrap" % "1.5-P27-B3" exclude ("com.fasterxml.jackson.datatype","jackson-datatype-jsr310")
51+
libraryDependencies += "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.8"
4752
libraryDependencies += "eu.bitwalker" % "UserAgentUtils" % "1.20"
48-
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.1.5"
49-
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.5.14"
50-
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % "10.1.5"
53+
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.1.10"
54+
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.5.16"
55+
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % "10.1.6"
5156
libraryDependencies += ws
5257

5358
routesGenerator := InjectedRoutesGenerator
@@ -58,7 +63,7 @@ libraryDependencies ++= Seq(
5863
"com.nimbusds" % "nimbus-jose-jwt" % "5.14",
5964
"org.bouncycastle" % "bcprov-jdk15on" % "1.60",
6065
"com.google.guava" % "guava" % "25.1-jre",
61-
"org.apache.commons" % "commons-compress" % "1.18"
66+
"org.apache.commons" % "commons-compress" % "1.19"
6267
)
6368

6469
libraryDependencies += "com.pauldijou" %% "jwt-core" % "1.0.0"

0 commit comments

Comments
 (0)