scala-cli / snailgun   0.4.1-sc2

Apache License 2.0 GitHub

(Scala CLI temporary fork of snailgun) A Nailgun client written in Scala that can compile to native and be used as a JVM library.

Scala versions: 2.13 2.12

Scala CLI temporary fork of snailgun

This temporary fork adds a few features to the original snailgun library. These changes are motivated by how Scala CLI uses snailgun.

This fork allows

  • not to supply a stdin InputStream (and not spawn a dedicated thread for it down-the-line)
  • to pass a thread pool, that snailgun can use to watch for output coming from the nailgun server (rather than spawning a new thread for each command sent to the server)

Building

This fork replaces sbt by Mill. Build it with

$ ./mill __.compile

Run tests with

$ ./mill __.test

Downloading

This fork JARs are pushed to Maven Central. Depend on it from Mill with

def ivyDeps = super.ivyDeps() ++ Seq(
  ivy"io.github.alexarchambault.scala-cli.snailgun::snailgun-core:0.4.1-sc1"
)