[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Handle sbt dependencies



Hi Fabio,

Le 2/02/2016 01:11, Fabio a écrit :

>   1. Some libraries used in sbt have different versions. How can I
> handle this cases?

Most of the time using the most recent version of the library just
works. If it doesn't we patch the code.

>   2. Is it possible to packaging in debian different version for the
> same library?

Yes it's possible but we try to avoid that to reduce the maintenance
burden. Multiple versions are usually packaged when they are highly
incompatible and patching the code is too difficult or risky. Some
notable examples are junit and junit4, antlr 3.5 and antlr 3.2, log4j
1.2 and log4j 2.

>   3. maybe some libs may need sbt to build themselves so we may have
> circular dependency. How can I handle this cases?

We work around this kind of issue by using a different build system. For
example Maven was bootstrapped in Debian using Ant.

>   4. I read and watch video from [1] but is there a java packaging tutorial?

I don't think there is an up to date tutorial. Studying existing
packages is the best source of inspiration. And we'll be happy to guide
you on this list or on IRC.

Emmanuel Bourg


Reply to: