Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcfoggy/force-annotation-demo

demo project to force annotation on types using annotation processing
https://github.com/mcfoggy/force-annotation-demo

annotation-processing demo java maven

Last synced: 18 days ago
JSON representation

demo project to force annotation on types using annotation processing

Awesome Lists containing this project

README

        

# responsible annotations

Demo project for a blog [post](http://blog.matthieu.brouillard.fr/2016/11/26/ensure-annotation-on-classes/) on how to enforce the definition of annotations on java types using annotation processing.

When building: `mvn clean install`, the build MUST fail with the following error:

```
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] fr.brouillard.oss.app.ServiceTwo must be annotated with @fr.brouillard.oss.annotation.Responsible to declare a ownership
[INFO] 1 error
```