Class DependencyManagementArtifactCoordinatesResolver
- java.lang.Object
-
- org.grails.cli.compiler.dependencies.DependencyManagementArtifactCoordinatesResolver
-
- All Implemented Interfaces:
ArtifactCoordinatesResolver
public class DependencyManagementArtifactCoordinatesResolver extends java.lang.Object implements ArtifactCoordinatesResolver
- Since:
- 2022.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<java.lang.String>GRAILS_PLUGINS
-
Constructor Summary
Constructors Constructor Description DependencyManagementArtifactCoordinatesResolver()DependencyManagementArtifactCoordinatesResolver(DependencyManagement dependencyManagement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArtifactId(java.lang.String id)Gets the artifact id of the artifact identified by the givenmodule.java.lang.StringgetGroupId(java.lang.String artifactId)Gets the group id of the artifact identified by the givenmodule.java.lang.StringgetVersion(java.lang.String module)Gets the version of the artifact identified by the givenmodule.
-
-
-
Constructor Detail
-
DependencyManagementArtifactCoordinatesResolver
public DependencyManagementArtifactCoordinatesResolver()
-
DependencyManagementArtifactCoordinatesResolver
public DependencyManagementArtifactCoordinatesResolver(DependencyManagement dependencyManagement)
-
-
Method Detail
-
getGroupId
public java.lang.String getGroupId(java.lang.String artifactId)
Description copied from interface:ArtifactCoordinatesResolverGets the group id of the artifact identified by the givenmodule. Returnsnullif the artifact is unknown to the resolver.- Specified by:
getGroupIdin interfaceArtifactCoordinatesResolver- Parameters:
artifactId- the id of the module- Returns:
- the group id of the module
-
getArtifactId
public java.lang.String getArtifactId(java.lang.String id)
Description copied from interface:ArtifactCoordinatesResolverGets the artifact id of the artifact identified by the givenmodule. Returnsnullif the artifact is unknown to the resolver.- Specified by:
getArtifactIdin interfaceArtifactCoordinatesResolver- Parameters:
id- the id of the module- Returns:
- the artifact id of the module
-
getVersion
public java.lang.String getVersion(java.lang.String module)
Description copied from interface:ArtifactCoordinatesResolverGets the version of the artifact identified by the givenmodule. Returnsnullif the artifact is unknown to the resolver.- Specified by:
getVersionin interfaceArtifactCoordinatesResolver- Parameters:
module- the id of the module- Returns:
- the version of the module
-
-