Split Gradle instructions section.
This commit is contained in:
parent
9e3f926443
commit
44618d17df
1 changed files with 6 additions and 3 deletions
|
@ -133,6 +133,8 @@ To install and run from [Maven](http://maven.apache.org/), configure an artifact
|
||||||
|
|
||||||
### Gradle
|
### Gradle
|
||||||
|
|
||||||
|
#### Class Generation
|
||||||
|
|
||||||
To install and run from [Gradle](https://gradle.org/), add the following to the `build.gradle` file:
|
To install and run from [Gradle](https://gradle.org/), add the following to the `build.gradle` file:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
|
@ -141,9 +143,11 @@ dependencies {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `GeneratedVersion` class will be automatically generated in the `build` directory upon compiling.
|
The `GeneratedVersion` class will be automatically created in the `build` directory upon compiling.
|
||||||
|
|
||||||
In order to also include the generated source code to your source tree, you should use the [EWERK Annotation Processor Plugin](https://github.com/ewerk/gradle-plugins/tree/master/plugins/annotation-processor-plugin). Start by addding the following to the very top of the `build.gradle` file:
|
#### Glass & Source Generation
|
||||||
|
|
||||||
|
In order to also incorporate the generated source code into the `source tree`, use the [EWERK Annotation Processor Plugin](https://github.com/ewerk/gradle-plugins/tree/master/plugins/annotation-processor-plugin). Start by addding the following to the very top of the `build.gradle` file:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -159,7 +163,6 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
annotationProcessor {
|
annotationProcessor {
|
||||||
project.version = getVersion(isRelease)
|
|
||||||
library 'net.thauvin.erik:semver:0.9.1-beta'
|
library 'net.thauvin.erik:semver:0.9.1-beta'
|
||||||
processor 'net.thauvin.erik.semver.VersionProcessor'
|
processor 'net.thauvin.erik.semver.VersionProcessor'
|
||||||
// sourcesDir 'src/generated/java'
|
// sourcesDir 'src/generated/java'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue