Ammonite-REPL preconfigured for Apache TinkerPop 3 using gremlin-scala Scala wrapper
- Scala 2.12.4
- Ammonite-REPL 1.1.0
- TinkerPop 3.3.1
- gremlin-scala 3.3.1.2
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)
sbt run
sbt assembly
The jar file will be created under /target/scala-2.12 and you can run it with:
java -jar filename.jar