Skip to content

Commit

Permalink
V1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtron committed Jun 8, 2018
1 parent bace258 commit 08b7dc3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
# enum-mapper
The main use: make sure that you always handle all available constants of an enum. An annotation processor will
make sure that you get a compile-time error otherwise: see [Full Enum Mapper](#full-enum-mapper).
You can also use a [Partial Mapper](#partial-enum-mapper) and it supports [Reverse Mapping](#reverse-mapping).
You can also use a [Partial Mapper](#partial-enum-mapper) and it supports [Reverse Mapping](#reverse-mapping).
Since version 1.4 [Incremental Annotation Processing ](https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing)
is supported for Gradle builds.

## Build Configuration

The project is available in [Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tmtron.enums%22) and
[JCenter-Bintray](https://bintray.com/tmtron/maven/com.tmtron.enum-mapper) repositories.

```gradle
final VERSION_ENUM_MAPPER = '1.0.3' // check for newer versions here: https://goo.gl/LSP1fv
compile "com.tmtron.enums:enum-mapper-lib:${VERSION_ENUM_MAPPER}"
apt "com.tmtron.enums:enum-mapper-processor:${VERSION_ENUM_MAPPER}"
final VERSION_ENUM_MAPPER = '1.0.4' // check for newer versions here: https://goo.gl/LSP1fv
implementation "com.tmtron.enums:enum-mapper-lib:${VERSION_ENUM_MAPPER}"
annotationProcessor "com.tmtron.enums:enum-mapper-processor:${VERSION_ENUM_MAPPER}"
```
### enum-mapper-lib
Contains java code and annoations.
Contains java code and annotations.
This is always needed at compile-time.
[![Maven Central lib](https://img.shields.io/maven-central/v/com.tmtron.enums/enum-mapper-lib.svg?maxAge=86400)](https://maven-badges.herokuapp.com/maven-central/com.tmtron.enums/enum-mapper-lib) [![Javadoc](https://javadoc-emblem.rhcloud.com/doc/com.tmtron.enums/enum-mapper-lib/badge.svg?maxAge=86400)](http://www.javadoc.io/doc/com.tmtron.enums/enum-mapper-lib/)

Expand Down Expand Up @@ -182,6 +184,5 @@ For example [FindBugs](http://findbugs.sourceforge.net/) has a check *Switch sta
*Disadvantages*
* those are other tools that you must learn to use and maintain


## License
This plugin is under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html). Copyright 2018, Martin Trummer
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ final isCi = System.getenv("TRAVIS") != null
final isJitpack = System.getenv("JITPACK") != null

ext {
bintrayDryRun = true
bintrayDryRun = false
}

subprojects {

group 'com.tmtron.enums'
version '1.0.4-SNAPSHOT'
version '1.0.4'
// version '1.0.5-SNAPSHOT'
description 'Annotation processor that builds an enum mapper which causes a compile-time error when you forget an enum'

repositories {
Expand Down

0 comments on commit 08b7dc3

Please sign in to comment.