mirror of https://github.com/grpc/grpc-java.git
Fix generated code reference for intellij projects.
This commit is contained in:
parent
66b984ca9d
commit
d5bd33ca1b
|
|
@ -74,16 +74,11 @@ applicationDistribution.into("bin") {
|
|||
fileMode = 0755
|
||||
}
|
||||
|
||||
// Allow intellij projects to refer to generated-sources
|
||||
// Let intellij projects refer to generated code
|
||||
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')]
|
||||
if (buildDir.exists()) {
|
||||
excludeDirs += files(buildDir.listFiles())
|
||||
excludeDirs -= file("$buildDir/generated-sources")
|
||||
}
|
||||
sourceDirs += file("${projectDir}/src/generated/main/java");
|
||||
sourceDirs += file("${projectDir}/src/generated/main/grpc");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,15 +59,10 @@ applicationDistribution.into("bin") {
|
|||
fileMode = 0755
|
||||
}
|
||||
|
||||
// Allow intellij projects to refer to generated-sources
|
||||
// Let intellij projects refer to generated code
|
||||
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')]
|
||||
if (buildDir.exists()) {
|
||||
excludeDirs += files(buildDir.listFiles())
|
||||
excludeDirs -= file("$buildDir/generated-sources")
|
||||
}
|
||||
sourceDirs += file("${projectDir}/src/generated/main/java");
|
||||
sourceDirs += file("${projectDir}/src/generated/main/grpc");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,15 +63,10 @@ applicationDistribution.into("bin") {
|
|||
|
||||
configureProtoCompilation()
|
||||
|
||||
// Allow intellij projects to refer to generated-sources
|
||||
// Let intellij projects refer to generated code
|
||||
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')]
|
||||
if (buildDir.exists()) {
|
||||
excludeDirs += files(buildDir.listFiles())
|
||||
excludeDirs -= file("$buildDir/generated-sources")
|
||||
}
|
||||
sourceDirs += file("${projectDir}/src/generated/main/java");
|
||||
sourceDirs += file("${projectDir}/src/generated/main/grpc");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue