breskeby commented on code in PR #14788:
URL: https://github.com/apache/lucene/pull/14788#discussion_r2150602765


##########
build-tools/build-infra/src/main/groovy/lucene.java.core.mrjar.gradle:
##########
@@ -32,9 +32,14 @@ configure(project(":lucene:core")) {
       tasks.named("compileMain${jdkVersion}Java").configure {
         def apijar = apijars.file("jdk${jdkVersion}.apijar")
 
+        // TODO: this depends on the order of argument configuration...
         int releaseIndex = options.compilerArgs.indexOf("--release")
         options.compilerArgs.removeAt(releaseIndex)
         options.compilerArgs.removeAt(releaseIndex)
+
+        // Remove conflicting options for the linter. #14782
+        options.compilerArgs.removeAll("-Xlint:options")

Review Comment:
   I don't have a better idea than you. I can think of a smarter  
ArgumentProvider but no easy fix



-- 
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