Add annotation if target annotation exists

Proprietary

Adds an annotation to a class if it already has a specified target annotation.

io.moderne.java.dropwizard.boot.annotation.AddClassAnnotationIfAnnotationExists

Required

The annotation that should be added.

The annotation that should be looked for.

Optional

annotateInnerClassesBoolean

Boolean whether to annotate inner classes of the matched annotation

mod run . --recipe=io.moderne.java.dropwizard.boot.annotation.AddClassAnnotationIfAnnotationExists \ -P annotationToAdd=org.springframework.stereotype.Component \ -P targetAnnotationClassName=javax.ws.rs.Path

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.