What's the best way to distribute SBT-based REPL application?

24 views
Skip to first unread message

Allen Nie

unread,
Mar 22, 2015, 9:06:30 AM3/22/15
to simple-b...@googlegroups.com
Hi!

    I'm writing a Scala library for my co-workers at a lab. I noticed that using "initialCommands" and "sbt console" can launch a Scala-REPL with access to the code I write as well as library dependencies. Most of the co-workers know how to use R, so I imagine REPL would be the best tool for them to use.

    However, I'm having trouble with SBT. It seems that SBT will always try to find the "build.sbt" file under the current directory, or it will try to find library jars in "./libs" directory. When I distribute it, I hope it only contains a jar file, and a couple of files (like a "build.sbt", a bash script for Unix or Cygwin, a batch script for Windows). Is this the best way to proceed? If so, what should I include In "build.sbt"?

Sincerely,
Allen

Josh Suereth

unread,
Mar 24, 2015, 10:28:42 AM3/24/15
to simple-b...@googlegroups.com
Sbt realy isnt' meant to be sent as a deliver mechanism.   Instead, we have the sbt launcher which can launch applications.

Additionally, there's lots of mecahnisms for packaging up a single JAR which can run the Scala REPL.

I'd recomend looking into sbt-assembly and how to embedd the scala interpreter in your own main method.

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages