Skip to content
Merged
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
11 changes: 11 additions & 0 deletions build-tools-internal/src/main/groovy/elasticsearch.ide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ import java.nio.file.StandardCopyOption
allprojects {
apply plugin: 'idea'

// We got reports of invalid idea classpaths when major classpath changes (e.g. lucene update)
// has been merged and developers switching back and forth. This should enforce idea
// to not try to be smart.
// This enforces A "complete rewrite" causing all existing content to be discarded,
// thereby losing any changes made directly in the IDE but that should be fine for us.
idea.module.iml {
beforeMerged { module ->
module.dependencies.clear()
}
}

tasks.named('idea').configure {
doFirst { throw new GradleException("Use of the 'idea' task has been deprecated. For details on importing into IntelliJ see CONTRIBUTING.md.") }
}
Expand Down