java - Building scala with SBT to make JAR and folder with dependencies -


i have project in scala (a kind of test utility) used in sbt run way. demo want prepare in form not require sbt or scala preinstalled (only jvm).

first i've tried use sbt-assembly plugin lost fighting duplicate entries. i'm curious whether can compile to:

  • single jar-file containing application itself;
  • and lib directory containing raw set of dependency jars.

i hope in such case easy run of main-class , class-path: ./lib/* fields in manifest - wrong? if correct, how can achieve this?

update: @ last conquered (it seems so) sbt-assembly approach, question not urgent (though i'm still curious extend knowledge of using sbt).

when execute sbt-assembly, depedencies, app , resources package single jar file.

you can override config properties in runtime by:

java -cp conf/:myappdemo.jar app.run.mainclass 

put config properties files in conf folder.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -