|
5 | 5 | # enum-mapper |
6 | 6 | The main use: make sure that you always handle all available constants of an enum. An annotation processor will |
7 | 7 | make sure that you get a compile-time error otherwise: see [Full Enum Mapper](#full-enum-mapper). |
8 | | -You can also use a [Partial Mapper](#partial-enum-mapper) and it supports [Reverse Mapping](#reverse-mapping). |
| 8 | +You can also use a [Partial Mapper](#partial-enum-mapper) and it supports [Reverse Mapping](#reverse-mapping). |
| 9 | +Since version 1.4 [Incremental Annotation Processing ](https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing) |
| 10 | + is supported for Gradle builds. |
9 | 11 |
|
10 | 12 | ## Build Configuration |
11 | 13 |
|
12 | 14 | The project is available in [Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tmtron.enums%22) and |
13 | 15 | [JCenter-Bintray](https://bintray.com/tmtron/maven/com.tmtron.enum-mapper) repositories. |
14 | 16 |
|
15 | 17 | ```gradle |
16 | | - final VERSION_ENUM_MAPPER = '1.0.3' // check for newer versions here: https://goo.gl/LSP1fv |
17 | | - compile "com.tmtron.enums:enum-mapper-lib:${VERSION_ENUM_MAPPER}" |
18 | | - apt "com.tmtron.enums:enum-mapper-processor:${VERSION_ENUM_MAPPER}" |
| 18 | + final VERSION_ENUM_MAPPER = '1.0.4' // check for newer versions here: https://goo.gl/LSP1fv |
| 19 | + implementation "com.tmtron.enums:enum-mapper-lib:${VERSION_ENUM_MAPPER}" |
| 20 | + annotationProcessor "com.tmtron.enums:enum-mapper-processor:${VERSION_ENUM_MAPPER}" |
19 | 21 | ``` |
20 | 22 | ### enum-mapper-lib |
21 | | -Contains java code and annoations. |
| 23 | +Contains java code and annotations. |
22 | 24 | This is always needed at compile-time. |
23 | 25 | [](https://maven-badges.herokuapp.com/maven-central/com.tmtron.enums/enum-mapper-lib) [](http://www.javadoc.io/doc/com.tmtron.enums/enum-mapper-lib/) |
24 | 26 |
|
@@ -182,6 +184,5 @@ For example [FindBugs](http://findbugs.sourceforge.net/) has a check *Switch sta |
182 | 184 | *Disadvantages* |
183 | 185 | * those are other tools that you must learn to use and maintain |
184 | 186 |
|
185 | | - |
186 | 187 | ## License |
187 | 188 | This plugin is under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html). Copyright 2018, Martin Trummer |
0 commit comments