Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 930 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 930 Bytes

gremlin-ammonite

Ammonite-REPL preconfigured for Apache TinkerPop 3 using gremlin-scala Scala wrapper

What's in the box?

  • Scala 2.12.4
  • Ammonite-REPL 1.1.0
  • TinkerPop 3.3.1
  • gremlin-scala 3.3.1.2

How to use:

Launch the downloaded file with:

  • java -jar filename.jar
implicit val graph = TinkerFactory.createModern.asScala
val name = Key[String]("name")

graph.V.hasLabel("person").value(name).toList
// List(marko, vadas, josh, peter)

How to run directly from sbt:

  • sbt run

How to create the fat jar standalone version:

  • sbt assembly

The jar file will be created under /target/scala-2.12 and you can run it with:

  • java -jar filename.jar