Package io.quarkus.cli.plugin
Class PluginManagerUtil
java.lang.Object
io.quarkus.cli.plugin.PluginManagerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate aPluginfrom the specified alias.fromLocation(String location) Create aPluginfrom the specified location.Get the name that corresponds the the specified location.Get the name that corresponds the the specified locations.static List<io.quarkus.maven.dependency.ArtifactKey> getTransitives(io.quarkus.maven.dependency.ArtifactKey artifactKey, Map<io.quarkus.maven.dependency.ArtifactKey, io.quarkus.registry.catalog.Extension> allExtensions) Collect all the transitive dependencies of the specified artifact.static PluginManagerUtilgetUtil()static PluginManagerUtilgetUtil(PluginManagerSettings settings)
-
Constructor Details
-
PluginManagerUtil
-
-
Method Details
-
getUtil
-
getUtil
-
fromLocation
Create aPluginfrom the specified location.- Parameters:
the- location- Returns:
- the
Pluginthat corresponds to the location.
-
fromAlias
Create aPluginfrom the specified alias.- Parameters:
alias- (e.g. name: location)- Returns:
- the
Pluginthat corresponds to the alias.
-
getName
Get the name that corresponds the the specified location. The name is the filename (without the jar extension) of any of the specified gactv, url or path.- Parameters:
location- the location- Returns:
- the name.
-
getName
public String getName(Optional<io.quarkus.maven.dependency.GACTV> gactv, Optional<URL> url, Optional<Path> path) Get the name that corresponds the the specified locations. The name is the filename (without the jar extension) of any of the specified gactv, url or path.- Parameters:
gactv- the gactvurl- the urlpath- the path- Returns:
- the name.
-
getTransitives
public static List<io.quarkus.maven.dependency.ArtifactKey> getTransitives(io.quarkus.maven.dependency.ArtifactKey artifactKey, Map<io.quarkus.maven.dependency.ArtifactKey, io.quarkus.registry.catalog.Extension> allExtensions) Collect all the transitive dependencies of the specified artifact.- Parameters:
artifactKey- the artifact keyallExtensions- all the extensions- Returns:
- the set of transitive dependencies
-