uschindler commented on code in PR #11836:
URL: https://github.com/apache/lucene/pull/11836#discussion_r986079639
##########
gradle/ide/intellij-idea.gradle:
##########
@@ -37,6 +37,22 @@ if (isIdea) {
}
}
+if (isIdeaSync) {
+ allprojects {
+ // disable all MR-JAR folders by hiding them from IDE after evaluation:
+ plugins.withType(JavaPlugin) {
+ project.afterEvaluate {
+ sourceSets.matching{ it.name ==~ /main\d+/ }.all{ sourceSet ->
+ logger.lifecycle("Skipping MR-JAR sourceSet on IntelliJ Idea: " +
sourceSet.name)
+ project.idea.module.excludeDirs += sourceSet.java.srcDirs
+ sourceSet.java.srcDirs = []
Review Comment:
Let me figure out if I can do this without actually removing the folder from
the SourceSet. I have to read the source code first.
If this is possible, the remaining stuff could be moved up. But anyways this
works as it should, it is just not nice.
--
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]