Class ProjectUtil

java.lang.Object
com.sidneysimmons.kimber.util.ProjectUtil

public class ProjectUtil extends Object
Utility class for working with the gradle project / sub-projects.
  • Method Details

    • getProjectDirectory

      public static String getProjectDirectory(org.gradle.api.Project project)
      Get the project directory absolute path.
      Parameters:
      project - the project
      Returns:
      the project directory absolute path
    • getBuildDirectory

      public static String getBuildDirectory(org.gradle.api.Project project)
      Get the build directory absolute path.
      Parameters:
      project - the project
      Returns:
      the build directory absolute path
    • getFullHierarchyProjectName

      public static String getFullHierarchyProjectName(org.gradle.api.Project project)
      Get the full hierarchy project name. If the main project is called "abc" and it has a subproject called "def" the value returned will be "abc-def".
      Parameters:
      project - the project
      Returns:
      the full hierarchy project name
    • getFullHierarchyProjectPath

      public static String getFullHierarchyProjectPath(org.gradle.api.Project project)
      Get the full hierarchy project path.If the main project is called "abc" and it has a subproject called "def" the value returned will be "abc/def".
      Parameters:
      project - the project
      Returns:
      the full hierarchy project path