use of org.gradle.caching.internal.BuildCacheHasher in project gradle by gradle.
the class DefaultClasspathHasher method hash.
@Override
public HashCode hash(ClassPath classpath) {
FileCollectionSnapshot snapshot = snapshotter.snapshot(new SimpleFileCollection(classpath.getAsFiles()), TaskFilePropertyCompareStrategy.ORDERED, ClasspathSnapshotNormalizationStrategy.INSTANCE);
BuildCacheHasher hasher = new DefaultBuildCacheHasher();
snapshot.appendToHasher(hasher);
return hasher.hash();
}
Aggregations