Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstamann authored Oct 23, 2023
1 parent c3e861f commit 7654854
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ This project provides the abstract base class _io.toolisticon.annotationprocesso
which extends the AbstractProcessor class provided by java. Your annotation processor needs to extends this class to be
able to use the utilities offered by this project and to build your annotation processor.

Nevertheless, you can even use this library when your processor doesn't extend the _io.toolisticon.annotationprocessortoolkit.AbstractAnnotationProcessor_. You need to initialize the _ToolingProvider_ manually in your processor - best place to do this is either in your processors _init_ or _processAnnotations_ method:

```java
ToolingProvider.setTooling(processingEnv);
```

Since your annotation processor later mostly will be bound as a provided dependency you should use the maven shade
plugin to embed the annotation-processor-toolkit and all other 3rd party dependency classes into your annotation
processor artifact. This can be done by adding the following to your annotation processors pom.xml:
Expand Down

0 comments on commit 7654854

Please sign in to comment.