use of com.typelead.gradle.utils.Arch in project gradle-eta by typelead.
the class EtlasResolver method resolveRemote.
public ResolvedExecutable resolveRemote(String repo, String version) {
Arch arch = getArch().valueOr(e -> {
throw e;
});
EtlasCache cache = new EtlasCache(cacheDir);
String etlasPath = cache.getBinaryPathForVersion(version, arch);
boolean fresh = false;
if (etlasPath == null) {
etlasPath = cache.putBinaryForVersion(version, getEtlasUrl(repo, version, arch), arch);
fresh = true;
}
return new ResolvedExecutable(etlasPath, version, false, fresh);
}
Aggregations