dweiss commented on code in PR #14788: URL: https://github.com/apache/lucene/pull/14788#discussion_r2149179129
########## 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: @breskeby is there any nicer way to do this kind of compilerArgs manipulation that doesn't depend on the ordering of those configuration callbacks? I can think of a custom argument provider but this would be even more confusing than what it is now, I think. -- 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