Class CompositeDependencyManagement
- java.lang.Object
-
- org.grails.cli.compiler.dependencies.CompositeDependencyManagement
-
- All Implemented Interfaces:
DependencyManagement
public class CompositeDependencyManagement extends java.lang.Object implements DependencyManagement
DependencyManagementthat delegates to one or moreDependencyManagementinstances.- Since:
- 2022.1.0
-
-
Constructor Summary
Constructors Constructor Description CompositeDependencyManagement(DependencyManagement... delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dependencyfind(java.lang.String artifactId)Finds the managed dependency with the givenartifactId.java.util.List<Dependency>getDependencies()Returns the managed dependencies.java.lang.StringgetGrailsVersion()java.lang.StringgetSpringBootVersion()Returns the managed version of Spring Boot.
-
-
-
Constructor Detail
-
CompositeDependencyManagement
public CompositeDependencyManagement(DependencyManagement... delegates)
-
-
Method Detail
-
getDependencies
public java.util.List<Dependency> getDependencies()
Description copied from interface:DependencyManagementReturns the managed dependencies.- Specified by:
getDependenciesin interfaceDependencyManagement- Returns:
- the managed dependencies
-
getSpringBootVersion
public java.lang.String getSpringBootVersion()
Description copied from interface:DependencyManagementReturns the managed version of Spring Boot. May benull.- Specified by:
getSpringBootVersionin interfaceDependencyManagement- Returns:
- the Spring Boot version, or
null
-
getGrailsVersion
public java.lang.String getGrailsVersion()
- Specified by:
getGrailsVersionin interfaceDependencyManagement
-
find
public Dependency find(java.lang.String artifactId)
Description copied from interface:DependencyManagementFinds the managed dependency with the givenartifactId.- Specified by:
findin interfaceDependencyManagement- Parameters:
artifactId- the artifact ID of the dependency to find- Returns:
- the dependency, or
null
-
-