Skip to content

Commit

Permalink
[docs] FIx IDEA hacks (#106)
Browse files Browse the repository at this point in the history
It looks like that a folder under an excluded one ( buildDir ) cannot be used as source.
  • Loading branch information
tux-mind authored and zhangkun83 committed Nov 30, 2016
1 parent 240b958 commit 18aa3b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,15 @@ can include the following block in you `build.gradle` to ask IntelliJ
to include the generated Java directories as source folders.

```gradle
protobuf {
...
generatedFilesBaseDir = "$projectDir/gen"
}
clean {
delete protobuf.generatedFilesBaseDir
}
idea {
module {
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java");
Expand Down

0 comments on commit 18aa3b1

Please sign in to comment.