dweiss commented on code in PR #802:
URL: https://github.com/apache/lucene/pull/802#discussion_r846579965


##########
gradle/validation/spotless.gradle:
##########
@@ -22,6 +22,19 @@
 
 def resources = scriptResources(buildscript)
 
+// Check that GJF has access to jdk.compiler internals (this is set up
+// in gradle JVM options via the generated gradle.properties).
+def checkGoogleFormatHasAccessToJdkInternals = 
rootProject.tasks.register("checkGoogleFormatHasAccessToJdkInternals", {
+  doFirst {
+    def isExported = ModuleLayer.boot().findModule("jdk.compiler")
+        .get().isExported("com.sun.tools.javac.parser", getClass().module)

Review Comment:
   Yep, we sure can. I'll do this later today.



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to