Skip to content

Commit

Permalink
Maven Central coordinates, closes [#4]
Browse files Browse the repository at this point in the history
  • Loading branch information
nurkiewicz committed Dec 7, 2014
1 parent 90ddaea commit 99e7a87
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,22 @@ Basically you start by typing `whenTypeOf()` and `Ctrl` + `space` will tell you
Writing DSLs is much harder than using them, but it's quite rewarding in the end. Notice how different return types are used ([`Then`](https://github.com/nurkiewicz/typeof/blob/master/src/main/java/com/blogspot/nurkiewicz/typeof/Then.java) vs. [`ThenReturn`](https://github.com/nurkiewicz/typeof/blob/master/src/main/java/com/blogspot/nurkiewicz/typeof/ThenReturn.java)) just to make sure only valid methods are accessible at each stage. An alternative is to implement run-time checks (for example that you don't write `is(...).is(...).then(...)`) - but why bother if compiler can do it for us?

I hope you enjoyed this article, let me know if you are willing to try this utility in your project.

# Maven

This tiny utility is available in Maven Central under:

```xml
<dependency>
<groupId>com.nurkiewicz.typeof</groupId>
<artifactId>typeof</artifactId>
<version>0.0.1</version>
</dependency>
```

## Releasing to Central:

```
$ mvn release:prepare -P release
& mvn release:perform -P release
```

0 comments on commit 99e7a87

Please sign in to comment.