Search in sources :

Example 1 with Arch

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);
}
Also used : ResolvedExecutable(com.typelead.gradle.utils.ResolvedExecutable) Arch(com.typelead.gradle.utils.Arch)

Aggregations

Arch (com.typelead.gradle.utils.Arch)1 ResolvedExecutable (com.typelead.gradle.utils.ResolvedExecutable)1