downloadMavenSources static method

Future<void> downloadMavenSources(
  1. List<MavenDependency> deps,
  2. Uri targetDir
)

Downloads and unpacks source files of deps into targetDir.

Implementation

static Future<void> downloadMavenSources(
    List<MavenDependency> deps, Uri targetDir) async {
  await _runGradleCommand(deps, targetDir, taskName: 'downloadSources');
  await _runGradleCommand(deps, targetDir, taskName: 'extractSourceJars');
}