Class GradleUtils

java.lang.Object
io.github.intisy.gradle.github.utils.GradleUtils

public class GradleUtils extends Object
This utility class provides methods for interacting with Gradle.
  • Constructor Details

    • GradleUtils

      public GradleUtils()
  • Method Details

    • getGradleHome

      public static Path getGradleHome()
      Returns the path to the Gradle home directory.

      The Gradle home directory is located at ~/.gradle/caches/github by default.

      Returns:
      the path to the Gradle home directory
    • getAllProjectsRecursive

      public static 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.
      Parameters:
      project - the root project from which to begin collecting projects
      Returns:
      a set containing the root project and all its subprojects