Package io.quarkus.cli.utils
Class GradleInitScript
java.lang.Object
io.quarkus.cli.utils.GradleInitScript
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateInitScript(Path path, Set<String> gavs) static PathcreateInitScript(Set<String> gavs) getInitScript(Collection<String> args) Get the path of the init script if found in the list of arguments.static voidpopulateForExtensions(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.Return the GAV of the dependencies found in the specified init script.
-
Field Details
-
ALL_PROJECTS
- See Also:
-
APPLY_PLUGIN_JAVA
- See Also:
-
DEPENDENCIES
- See Also:
-
DEPENDENCY
- See Also:
-
CLOSE
- See Also:
-
TAB
- See Also:
-
NEWLINE
- See Also:
-
INIT_SCRIPT
- See Also:
-
-
Constructor Details
-
GradleInitScript
public GradleInitScript()
-
-
Method Details
-
getInitScript
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 scriptargs- The argument list
-
readInitScriptDependencies
Return the GAV of the dependencies found in the specified init script.- Returns:
- a list with gavs found.
-
createInitScript
-
createInitScript
-