use of org.gradle.api.internal.changedetection.state.RuntimeClasspathResourceHasher in project gradle by gradle.
the class ClasspathFingerprintingStrategy method runtimeClasspath.
public static ClasspathFingerprintingStrategy runtimeClasspath(ResourceFilter classpathResourceFilter, ResourceEntryFilter manifestAttributeResourceEntryFilter, Map<String, ResourceEntryFilter> propertiesFileFilters, RuntimeClasspathResourceHasher runtimeClasspathResourceHasher, ResourceSnapshotterCacheService cacheService, Interner<String> stringInterner, LineEndingSensitivity lineEndingSensitivity) {
ResourceHasher resourceHasher = LineEndingNormalizingResourceHasher.wrap(runtimeClasspathResourceHasher, lineEndingSensitivity);
resourceHasher = propertiesFileHasher(resourceHasher, propertiesFileFilters);
resourceHasher = metaInfAwareClasspathResourceHasher(resourceHasher, manifestAttributeResourceEntryFilter);
resourceHasher = ignoringResourceHasher(resourceHasher, classpathResourceFilter);
ZipHasher zipHasher = new ZipHasher(resourceHasher);
return new ClasspathFingerprintingStrategy(CLASSPATH_IDENTIFIER, USE_FILE_HASH, resourceHasher, zipHasher, cacheService, stringInterner);
}
Aggregations