getGradleCachePath static method

String? getGradleCachePath()

Gets the Gradle global cache directory.

Implementation

static String? getGradleCachePath() {
  final home = PathUtils.getHomeDirectory();
  if (home.isEmpty) return null;

  if (Platform.isWindows) {
    return PathUtils.resolveAbsolute(path.join(home, '.gradle', 'caches'));
  } else {
    return PathUtils.resolveAbsolute(path.join(home, '.gradle', 'caches'));
  }
}