use of org.gradle.internal.resource.local.ByteArrayReadableContent in project gradle by gradle.
the class ExternalResourceResolver method putChecksum.
private void putChecksum(File source, ExternalResourceName destination) {
byte[] checksumFile = createChecksumFile(source, "SHA1", 40);
ExternalResourceName checksumDestination = destination.append(".sha1");
repository.resource(checksumDestination).put(new ByteArrayReadableContent(checksumFile));
}
Aggregations