@GroovyASTTransformation(phase = CompilePhase.CONVERSION) public abstract class GenericBomAstTransformation extends Object implements SpringBootAstTransformation, Ordered
A base class that lets plugin authors easily add additional BOMs to all apps. All the
dependencies in the BOM (and its transitives) will be added to the dependency
management lookup, so an app can use just the artifact id (e.g. "spring-jdbc") in a
@Grab
. To install, implement the missing methods and list the class in
META-INF/services/org.springframework.boot.cli.compiler.SpringBootAstTransformation
. The getOrder() value needs to be before
DependencyManagementBomTransformation.ORDER.
Type Params | Return Type | Name and description |
---|---|---|
|
protected abstract String |
getBomModule() The bom to be added to dependency management in compact form: "<groupId>:<artifactId>:<version>" (like in a @Grab ). |
|
public void |
visit(ASTNode[] nodes, SourceUnit source) |
The bom to be added to dependency management in compact form:
"<groupId>:<artifactId>:<version>"
(like in a @Grab
).