Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ develocity {
}
} else {
tag 'LOCAL'
if (providers.systemProperty('idea.active').present) {
tag 'IDEA'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,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'
Expand All @@ -171,6 +171,11 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
}
}
runConfigurations {
defaults(org.jetbrains.gradle.ext.Gradle) {
scriptParameters = enableIdeaCC ? [
'--configuration-cache'
].join(' ') : ''
}
defaults(JUnit) {
vmParameters = [
'-ea',
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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