From 73938ca8caebbcf803cbbfdd38ef02d89284262d Mon Sep 17 00:00:00 2001 From: Louis Ryan Date: Tue, 20 Jan 2015 14:44:09 -0800 Subject: [PATCH] Fix IntelliJ dependency on generated protobufs --- integration-testing/build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/integration-testing/build.gradle b/integration-testing/build.gradle index 2ad104bad72..cb55bb68dc1 100644 --- a/integration-testing/build.gradle +++ b/integration-testing/build.gradle @@ -1,4 +1,5 @@ apply plugin: 'protobuf' +apply plugin: 'idea' description = "Stubby: Integration Testing" @@ -21,3 +22,14 @@ dependencies { libraries.junit, libraries.mockito } + +// Allow intellij projects to refer to generated-sources +idea { + module { + // The whole build dir is excluded by default, but we need build/generated-sources, + // which contains the generated proto classes. + excludeDirs = [file('.gradle')] + excludeDirs += files(file("$buildDir/").listFiles()) + excludeDirs -= file("$buildDir/generated-sources") + } +}