Skip to content

Instantly share code, notes, and snippets.

@danieldietrich danieldietrich/
Last active Jan 14, 2019

What would you like to do?
Coursier Artifact Fetching


import static io.vavr.API.*;

class Main {
    public static void main(String... args) {
        println("Hello Vavr!");

Example (Mac & Linux):

javac -d out -cp "$(coursier fetch -p io.vavr:vavr:0.9.3)"
java -cp out:"$(coursier fetch -p io.vavr:vavr:0.9.3)" Main


object Main {
  def main(args: Array[String]): Unit = {
    println(io.vavr.Lazy.of(() =>"Hi Vavr!"))

Example (Mac & Linux):

scalac -d out -classpath "$(coursier fetch -p io.vavr:vavr:0.9.3)" Main.scala
scala -d out -classpath out:"$(coursier fetch -p io.vavr:vavr:0.9.3)" Main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.