blob: 93f47859ece5cf1277d5e54967ffb14005cc7347 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package cbt;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Paths;
class EarlyDependency {
final URL url;
final Path path;
final String hash;
public EarlyDependency(String folder, String file, String hash) throws MalformedURLException {
this.path = Paths.get(NailgunLauncher.CBT_HOME + "/cache/maven/" + folder + "/" + file + ".jar");
this.url = new URL("https://repo1.maven.org/maven2/" + folder + "/" + file + ".jar");
this.hash = hash;
}
// scala-lang dependency
public static EarlyDependency scala(String scalaModule, String hash)
throws MalformedURLException {
return new EarlyDependency(
"org/scala-lang/scala-" + scalaModule + "/" + NailgunLauncher.SCALA_VERSION,
"scala-" + scalaModule + "-" + NailgunLauncher.SCALA_VERSION,
hash
);
}
}
|