Class GradleUtils
java.lang.Object
io.github.intisy.gradle.github.utils.GradleUtils
This utility class provides methods for interacting with Gradle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.gradle.api.Project>getAllProjectsRecursive(org.gradle.api.Project project) Retrieves all projects recursively, starting from the specified project and including its subprojects, if any.static PathReturns the path to the Gradle home directory.
-
Constructor Details
-
GradleUtils
public GradleUtils()
-
-
Method Details
-
getGradleHome
Returns the path to the Gradle home directory.The Gradle home directory is located at
~/.gradle/caches/githubby default.- Returns:
- the path to the Gradle home directory
-
getAllProjectsRecursive
Retrieves all projects recursively, starting from the specified project and including its subprojects, if any.- Parameters:
project- the root project from which to begin collecting projects- Returns:
- a set containing the root project and all its subprojects
-