From 6b3ce20d098a9b37cd561ef8e07b41f833c1225d Mon Sep 17 00:00:00 2001 From: Sebastian Ratz Date: Wed, 24 Nov 2021 11:07:47 +0000 Subject: [PATCH] Update Guice for Java 17 compatibility Libaray com.typesafe.play / play-guice currently depends on version 4.2.3 of Guice. Guice 4.x causes 'illegal reflective access' warnings on Java 15 and prevents Cerebro from being usable with Java 16 and and 17 due to InaccessibleObjectExceptions. Explicitly include higher version 5.0.1 of the dependencies com.google.inject / guice com.google.inject.extensions / guice-assistedinject which work correctly with Java 15 and higher. Fixes #514. --- build.sbt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sbt b/build.sbt index 10ead91..cd9763f 100644 --- a/build.sbt +++ b/build.sbt @@ -31,6 +31,8 @@ libraryDependencies ++= Seq( libraryDependencies += filters libraryDependencies += ws libraryDependencies += guice +libraryDependencies += "com.google.inject" % "guice" % "5.0.1" +libraryDependencies += "com.google.inject.extensions" % "guice-assistedinject" % "5.0.1" lazy val root = (project in file(".")). enablePlugins(PlayScala, BuildInfoPlugin, LauncherJarPlugin, JDebPackaging, RpmPlugin).