From 00ce2f3ec6efc7fae0590fe82426bf0cb7eb4dff Mon Sep 17 00:00:00 2001 From: Valentin Kovalenko Date: Sun, 30 Mar 2025 13:46:55 -0600 Subject: [PATCH] Fix the following warning [Warn] : While parsing annotations in .../mongo-java-driver/driver-core/build/libs/mongodb-driver-core-5.5.0-SNAPSHOT.jar(com/mongodb/lang/Nullable.class), could not find MAYBE in enum . This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (scala/bug#7014). --- driver-scala/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/driver-scala/build.gradle.kts b/driver-scala/build.gradle.kts index 96828175d2..6818788962 100644 --- a/driver-scala/build.gradle.kts +++ b/driver-scala/build.gradle.kts @@ -26,6 +26,7 @@ val scalaVersion: String = project.scalaVersion() dependencies { api(project(path = ":bson-scala", configuration = "default")) api(project(path = ":driver-reactive-streams", configuration = "default")) + compileOnly(libs.findbugs.jsr) testImplementation(project(path = ":driver-sync", configuration = "default")) testImplementation(project(path = ":bson", configuration = "testArtifacts"))