diff options
Diffstat (limited to 'bootstrap_scala/Dependency.java')
-rw-r--r-- | bootstrap_scala/Dependency.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/bootstrap_scala/Dependency.java b/bootstrap_scala/Dependency.java deleted file mode 100644 index 571047b..0000000 --- a/bootstrap_scala/Dependency.java +++ /dev/null @@ -1,29 +0,0 @@ -import java.net.MalformedURLException; -import java.net.URL; -import java.nio.file.Path; -import java.nio.file.Paths; - -class Dependency { - - final URL url; - final Path path; - final String hash; - - public Dependency(String target, String folder, String file, String hash) throws MalformedURLException { - this.path = Paths.get(target + file + ".jar"); - this.url = new URL("https://repo1.maven.org/maven2/org/scala-lang/" + folder + "/" + file + ".jar"); - this.hash = hash; - } - - // scala-lang dependency - public static Dependency scala(String target, String scalaVersion, String scalaModule, String hash) - throws MalformedURLException { - return new Dependency( - target, - "scala-" + scalaModule + "/" + scalaVersion, - "scala-" + scalaModule + "-" + scalaVersion, - hash - ); - } - -} |