breskeby commented on code in PR #14764: URL: https://github.com/apache/lucene/pull/14764#discussion_r2142109839
########## build-tools/build-infra/src/main/groovy/lucene.ide.intellij-idea.gradle: ########## @@ -37,12 +37,12 @@ if (isIdea) { } } -if (isIdeaSync) { +if (rootProject.ext.isIdeaSync) { allprojects { // disable all MR-JAR folders by hiding them from IDE after evaluation: - plugins.withType(JavaPlugin) { - sourceSets.matching{ it.name ==~ /main\d+/ }.all{ SourceSet sourceSet -> - project.afterEvaluate { + plugins.withType(JavaPlugin).configureEach { + project.afterEvaluate { Review Comment: sourceSets.matching.configureEach is lazy. you should not need the project.afterEvaluate here -- 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