Example #1
0
 private void getSnapshotDependency(
     DependencyDescriptor dd, BuildableModuleVersionMetaDataResolveResult result) {
   final ModuleRevisionId dependencyRevisionId = dd.getDependencyRevisionId();
   final String uniqueSnapshotVersion = findUniqueSnapshotVersion(dependencyRevisionId);
   if (uniqueSnapshotVersion != null) {
     DependencyDescriptor enrichedDependencyDescriptor =
         enrichDependencyDescriptorWithSnapshotVersionInfo(
             dd, dependencyRevisionId, uniqueSnapshotVersion);
     super.getDependency(enrichedDependencyDescriptor, result);
     if (result.getState() == BuildableModuleVersionMetaDataResolveResult.State.Resolved) {
       result.setModuleSource(new TimestampedModuleSource(uniqueSnapshotVersion));
     }
   } else {
     super.getDependency(dd, result);
   }
 }