@org.codehaus.groovy.transform.GroovyASTTransformation(phase = CompilePhase.CONVERSION) public abstract class GenericBomAstTransformation extends java.lang.Object implements Ordered, SpringBootAstTransformation
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 java.lang.String |
getBomModule() The bom to be added to dependency management in compact form: "<groupId>:<artifactId>:<version>" (like in a @Grab ). |
|
public void |
visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The bom to be added to dependency management in compact form:
"<groupId>:<artifactId>:<version>"
(like in a @Grab
).