Skip to content

Instantly share code, notes, and snippets.

@danieldietrich danieldietrich/README.md
Last active Jan 14, 2019

Embed
What would you like to do?
Coursier Artifact Fetching

Java

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)" Main.java
java -cp out:"$(coursier fetch -p io.vavr:vavr:0.9.3)" Main

Scala

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.