Fixed generated source location.

This commit is contained in:
Erik C. Thauvin 2018-11-02 17:33:22 -07:00
parent 351ed6598a
commit 33beb8ad5f

View file

@ -195,7 +195,7 @@ The `GeneratedVersion` class will be automatically created in the `build/generat
In order to also incorporate the generated source code into the `source tree`, add the following to the very top of the `build.gradle` file: In order to also incorporate the generated source code into the `source tree`, add the following to the very top of the `build.gradle` file:
```gradle ```gradle
compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated") compileJava.options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")
``` ```
The `GeneratedVersion.java` file will now be located in `src/generated`. The `GeneratedVersion.java` file will now be located in `src/generated`.