janhoy commented on code in PR #4038:
URL: https://github.com/apache/solr/pull/4038#discussion_r2681724529


##########
solr/modules/jwt-auth/build.gradle:
##########
@@ -19,12 +19,21 @@ apply plugin: 'java-library'
 
 description = 'JWT / OpenID Connect / OAuth2 authentication plugin'
 
+// This is a hacky way to use permitTestUnusedDeclared with bom declared 
dependencies.
+// See 
https://github.com/gradle-dependency-analyze/gradle-dependency-analyze/issues/108
+configurations {
+  constraintsOnly
+  permitTestUnusedDeclared.extendsFrom constraintsOnly
+  implementation.extendsFrom constraintsOnly
+}
+
 dependencies {
-  implementation platform(project(':platform'))
-  implementation platform(libs.fasterxml.jackson.bom)
+  constraintsOnly platform(project(':platform'))
+  constraintsOnly platform(libs.fasterxml.jackson.bom)

Review Comment:
   I rolled back jwt-auth build.gradle to an earlier version to get precommit 
passing. This also rolls back the change from #4039 which might not be 
necessary...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to