From 33beb8ad5f2afda05c1b7dcfe154789aa7968b2a Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 2 Nov 2018 17:33:22 -0700 Subject: [PATCH] Fixed generated source location. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 665ec45..3db1cb5 100644 --- a/README.md +++ b/README.md @@ -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: ```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`. @@ -237,4 +237,4 @@ Please look at the [Kotlin example](https://github.com/ethauvin/semver/tree/mast Incrementing the version is best left to your favorite build system. For a solution using Gradle, please have a look at the [__Semver Version Plugin for Gradle__](https://github.com/ethauvin/semver-gradle). -There are also full [examples](https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor) in both [Java](https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor/java) and [Kotlin](https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor) showing how to use both the plugin and annotation processor concurrently. \ No newline at end of file +There are also full [examples](https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor) in both [Java](https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor/java) and [Kotlin](https://github.com/ethauvin/semver-gradle/tree/master/examples/annotation-processor) showing how to use both the plugin and annotation processor concurrently.