diff --git a/build-tools-internal/src/main/groovy/elasticsearch.build-scan.gradle b/build-tools-internal/src/main/groovy/elasticsearch.build-scan.gradle index 8702f5a9bf0e..4113e1c1c9d2 100644 --- a/build-tools-internal/src/main/groovy/elasticsearch.build-scan.gradle +++ b/build-tools-internal/src/main/groovy/elasticsearch.build-scan.gradle @@ -133,6 +133,9 @@ develocity { } } else { tag 'LOCAL' + if (providers.systemProperty('idea.active').present) { + tag 'IDEA' + } } } } diff --git a/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle b/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle index c491d74c589c..5ed55ab0d5a0 100644 --- a/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle +++ b/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle @@ -179,7 +179,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') { // this path is produced by the extractLibs task above String testLibraryPath = TestUtil.getTestLibraryPath("${elasticsearchProject.left()}/libs/native/libraries/build/platform") - + def enableIdeaCC = providers.gradleProperty("org.elasticsearch.idea-configuration-cache").getOrElse("true").toBoolean() idea { project { vcs = 'Git' @@ -209,6 +209,11 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') { } } runConfigurations { + defaults(org.jetbrains.gradle.ext.Gradle) { + scriptParameters = enableIdeaCC ? [ + '--configuration-cache' + ].join(' ') : '' + } defaults(JUnit) { vmParameters = [ '-ea', diff --git a/gradle.properties b/gradle.properties index aa38a61ab005..7c781d859cea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,3 +19,6 @@ org.gradle.dependency.verification.console=verbose # allow user to specify toolchain via the RUNTIME_JAVA_HOME environment variable org.gradle.java.installations.fromEnv=RUNTIME_JAVA_HOME + +# if configuration cache enabled then enable parallel support too +org.gradle.configuration-cache.parallel=true