Class PluginManagerUtil

java.lang.Object
io.quarkus.cli.plugin.PluginManagerUtil

public class PluginManagerUtil extends Object
  • Constructor Details

  • Method Details

    • getUtil

      public static PluginManagerUtil getUtil(PluginManagerSettings settings)
    • getUtil

      public static PluginManagerUtil getUtil()
    • fromLocation

      public Plugin fromLocation(String location)
      Create a Plugin from the specified location.
      Parameters:
      the - location
      Returns:
      the Plugin that corresponds to the location.
    • fromAlias

      public Plugin fromAlias(String alias)
      Create a Plugin from the specified alias.
      Parameters:
      alias - (e.g. name: location)
      Returns:
      the Plugin that corresponds to the alias.
    • getName

      public String getName(String location)
      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 gactv
      url - the url
      path - 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 key
      allExtensions - all the extensions
      Returns:
      the set of transitive dependencies