Esempio n. 1
0
 private String getDistributionRepository(GradleVersion version) {
   if (version.isSnapshot()) {
     return SNAPSHOT_REPOSITORY;
   } else {
     return RELEASE_REPOSITORY;
   }
 }
Esempio n. 2
0
 private URI getDistribution(
     String repositoryUrl, GradleVersion version, String archiveName, String archiveClassifier) {
   try {
     return new URI(
         repositoryUrl
             + "/"
             + archiveName
             + "-"
             + version.getVersion()
             + "-"
             + archiveClassifier
             + ".zip");
   } catch (URISyntaxException e) {
     throw UncheckedException.throwAsUncheckedException(e);
   }
 }