Skip to content

Commit 5744a71

Browse files
committed
Updating and pinning libraries for security reasons
1 parent 0fd39f5 commit 5744a71

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build.sbt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ lazy val management = (project in file(".")).enablePlugins(SbtWeb).enablePlugins
1414
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
1515
buildInfoPackage := "de.upb.cs.swt.delphi.management"
1616
)
17-
17+
1818
val conf = ConfigFactory.parseFile(new File("conf/application.conf")).resolve()
1919
val appPortManagement = conf.getString("app.portManagement")
2020

2121
PlayKeys.devSettings := Seq(
2222
"play.server.http.port" -> appPortManagement
23-
)
23+
)
2424
pipelineStages := Seq(digest,gzip)
2525

2626
resolvers += Resolver.sonatypeRepo("snapshots")
2727
resolvers += Resolver.jcenterRepo
2828

2929
libraryDependencies += guice
3030
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
31-
libraryDependencies += "com.h2database" % "h2" % "1.4.197"
31+
3232
libraryDependencies += "com.mohiva" %% "play-silhouette" % "5.0.0"
3333
libraryDependencies += "com.mohiva" %% "play-silhouette-persistence" % "5.0.0"
3434
libraryDependencies += "com.mohiva" %% "play-silhouette-crypto-jca" % "5.0.0"
@@ -41,3 +41,12 @@ libraryDependencies += "com.adrianhurt" %% "play-bootstrap" % "1.4-P26-B4-SNAPSH
4141
libraryDependencies += "eu.bitwalker" % "UserAgentUtils" % "1.20"
4242

4343
routesGenerator := InjectedRoutesGenerator
44+
45+
// Pinning secure versions of insecure transitive libraryDependencies
46+
// Please update when updating dependencies above (including Play plugin)
47+
libraryDependencies ++= Seq(
48+
"com.nimbusds" % "nimbus-jose-jwt" % "5.14",
49+
"org.bouncycastle" % "bcprov-jdk15on" % "1.60",
50+
"com.google.guava" % "guava" % "25.1-jre",
51+
"org.apache.commons" % "commons-compress" % "1.16"
52+
)

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// The Play plugin
2-
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.10")
2+
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.14")
33

44
// build management and packaging
55
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0")

0 commit comments

Comments
 (0)