mirror of https://github.com/grpc/grpc-java.git
Fix IntelliJ dependency on generated protobufs
This commit is contained in:
parent
4de2026492
commit
11026b69cc
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue