Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #8894

Re: SBT dependencies questions

From Fabio <fabio@pirola.org>
Newsgroups linux.debian.maint.java
Subject Re: SBT dependencies questions
Date 2016-02-21 14:50 +0100
Message-ID <r4CyC-6Vu-7@gated-at.bofh.it> (permalink)
References <qZbz3-82b-7@gated-at.bofh.it> <qZcbN-6L-35@gated-at.bofh.it> <qZkVI-6eE-13@gated-at.bofh.it> <qZE82-2Ub-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Emmanuel,


Il 07/02/2016 21:27, Emmanuel Bourg ha scritto:
> I don't think we can reuse the scala-sbt.org package as is. We should 
> at least have a proper source package even if it's in non-free. 
> Regarding the dependencies that's an excellent question. Would it be 
> possible to build a self contained package of sbt with its 
> dependencies such that it can be used in offline mode? 
I tried to create a package with all dependencies using sbt-assembly[1] 
but the build process at some point stops. It takes a lot of time and 
memory (some GBs). I also tried to increment Xmx, Xms, XX:MaxPermSize 
but I did not finish to assembly all dependencies.
I follow these steps:
1) download latest sbt binary
2) download latest sbt source
3) add to project/assembly.sbt  : addSbtPlugin("com.eed3si9n" % 
"sbt-assembly" % "0.14.1")
3) from sbt source directory execute command sbt (binary version)
4) when terminal is ready, type "assembly" that execute sbt-assembly task

What do you suggest to do?

>> Can I use jh_makepkg to package sbt?
> If it helps you, yes.
In reply of my questions [2], ed mentioned the sbt-native packager 
plugin[3]. Probably I can use it to create a debian package for sbt 
dependencies, what do you think?

> If you have a specific example I can show you how to do that.
There are the following sbt dependencies:
org.eclipse.jetty.orbit/javax.servlet/orbits/javax.servlet-2.5.0.v201103041518.jar
org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-http/jars/jetty-http-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-io/jars/jetty-io-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-security/jars/jetty-security-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-server/jars/jetty-server-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-util/jars/jetty-util-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-7.6.9.v20130131.jar
org.eclipse.jetty/jetty-xml/jars/jetty-xml-7.6.9.v20130131.jar
org.eclipse.jgit/org.eclipse.jgit.iplog/jars/org.eclipse.jgit.iplog-2.2.0.201212191850-r.jar
org.eclipse.jgit/org.eclipse.jgit.pgm/jars/org.eclipse.jgit.pgm-2.2.0.201212191850-r.jar
org.eclipse.jgit/org.eclipse.jgit.ui/jars/org.eclipse.jgit.ui-2.2.0.201212191850-r.jar
org.eclipse.jgit/org.eclipse.jgit/jars/org.eclipse.jgit-2.2.0.201212191850-r.jar




[1] https://github.com/sbt/sbt-assembly
[2] 
http://stackoverflow.com/questions/35260953/how-to-build-a-bundle-sbt-from-source-for-offline-use
[3] http://www.scala-sbt.org/sbt-native-packager/

Best Regards
Fabio

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Find similar


Thread

SBT dependencies questions Fabio <fabio@pirola.org> - 2016-02-06 15:00 +0100
  Re: SBT dependencies questions Emmanuel Bourg <ebourg@apache.org> - 2016-02-06 15:40 +0100
    Re: SBT dependencies questions Fabio <fabio@pirola.org> - 2016-02-07 01:00 +0100
      Re: SBT dependencies questions Emmanuel Bourg <ebourg@apache.org> - 2016-02-07 21:30 +0100
        Re: SBT dependencies questions Fabio <fabio@pirola.org> - 2016-02-21 14:50 +0100

csiph-web