Hi Brandon,
On Sep 29, 2011, at 8:58 AM, Coleman, Brandon wrote:
> Hello,
>
> Long time Ruby user, first time 'Buildr' ;)
Welcome.
> [snip]
> I personally like how dependencies are handled with the stack overflow
> solution, but instead of fixing their solution for my needs it just
> seems like my time would be better spent modifying buildr to handle this
> situation automatically.
>
> So before I get started working on this:
>
> 1. Is this something that the Buildr community would be interested
> in, if I were to provide the code?
It's not something I would use personally, but it is a frequently discussed
topic. I'd guess yes.
>
>
> 2. I was thinking of implementing something on top of the package
> method like package(:jar).with :manifest=>{},:singleJar, but there is
> probably a better way (open to suggestions)
I'd recommend implementing a different package type. E.g., package(:merged_jar)
or package(:jar_with_deps) or something.
>
> 3. Is there an example, or a starting point on how I should
> implement this?
Here are a couple of implementations of specialized package types:
* buildr-bnd[1] by Peter Donald was a separate extension for using bnd to build
OSGi bundles. It's now integrated into buildr.
* buildr-gemjar[2] by me is an extension for bundling rubygems into a jar for
use with JRuby.
Rhett
[1]: https://github.com/realityforge/buildr-bnd
[2]: https://github.com/NUBIC/buildr-gemjar
>
>
>
> Brandon
>