This Rug project contains an Atomist Rug archive project
a rug that adds an annotation to every Java type in a package
This Rug takes following parameters.
Name | Required | Default | Description |
---|---|---|---|
packageOfTypesToAnnotate |
Yes | com.example.dtos | |
annotationPackage |
Yes | lombok | |
annotationName |
Yes | Builder |
Run this Rug as follows:
$ rug edit "eldermael:add-annotation-to-type:AddAnnotationToEveryTypeInPackage" -a 0.1.0 packageOfTypesToAnnotate=com.example annotationPackage=lombok annotationName=Builder
It adds an annotation type to every type in the package you specify