Fix IntelliJ dependency on generated protobufs

This commit is contained in:
Louis Ryan 2015-01-20 14:44:09 -08:00
parent 4de2026492
commit 11026b69cc
1 changed files with 12 additions and 0 deletions

View File

@ -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")
}
}