You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2022/10/04 09:51:07 UTC
[lucene] branch branch_9x updated: GH-11819: Exclude MR-JAR sourceSet and folders from Idea Sync (#11836)
This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 7503698a3bf GH-11819: Exclude MR-JAR sourceSet and folders from Idea Sync (#11836)
7503698a3bf is described below
commit 7503698a3bf44a02a111fe3fc0e66f098e1392a7
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Tue Oct 4 11:49:39 2022 +0200
GH-11819: Exclude MR-JAR sourceSet and folders from Idea Sync (#11836)
---
gradle/ide/intellij-idea.gradle | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gradle/ide/intellij-idea.gradle b/gradle/ide/intellij-idea.gradle
index f9e7d1d456e..cfb0d52fec1 100644
--- a/gradle/ide/intellij-idea.gradle
+++ b/gradle/ide/intellij-idea.gradle
@@ -37,6 +37,21 @@ if (isIdea) {
}
}
+if (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 {
+ logger.lifecycle("Skipping MR-JAR sourceSet on IntelliJ Idea: " + sourceSet.name)
+ sourceSet.java.srcDirs = []
+ sourceSet.resources.srcDirs = []
+ }
+ }
+ }
+ }
+}
+
if (isIdeaBuild) {
// Skip certain long tasks that are dependencies
// of 'assemble' if we're building from within IntelliJ.