Class GradleInitScript

java.lang.Object
io.quarkus.cli.utils.GradleInitScript

public class GradleInitScript extends Object
  • Field Details

  • Constructor Details

    • GradleInitScript

      public GradleInitScript()
  • Method Details

    • getInitScript

      public static Optional<String> getInitScript(Collection<String> args)
      Get the path of the init script if found in the list of arguments.
      Returns:
      The optional path.
    • populateForExtensions

      public static void populateForExtensions(Collection<String> forcedExtensions, Collection<String> args)
      Create an init script that adds the specidied extensions and populate the arguments that should be passed to the gradle command, so that it loads the generated init script. The command will append to the specified argument list: `--init-script=invalid input: '<'/path/to/temporary/initscript>`
      Parameters:
      forcedExtensions - The forcced extension to add to the init script
      args - The argument list
    • readInitScriptDependencies

      public static List<String> readInitScriptDependencies(Path path)
      Return the GAV of the dependencies found in the specified init script.
      Returns:
      a list with gavs found.
    • createInitScript

      public static Path createInitScript(Set<String> gavs)
    • createInitScript

      public static void createInitScript(Path path, Set<String> gavs)