You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@buildr.apache.org by Peter Donald <pe...@realityforge.org> on 2011/11/02 04:40:04 UTC
Re: Experiences with transitive dependencies in buildr
Hi,
On Sat, Oct 29, 2011 at 5:43 AM, Michael Guymon
<mi...@gmail.com> wrote:
> The integration with buildr is crude and for some reason the rdoc is no
> longer formated correct. I will update it to make it legible again.
>
> https://github.com/mguymon/buildr-resolver
nice.
> This is the ruby wrapper for the Aether java libs, which buildr-resolver
> depends on
>
> https://github.com/mguymon/naether
That is quite neat. I wonder if the core of buildr could move across
to using (n)Aether and if there is much benefit from that? Last time I
looked the project was still relatively volatile. What did you think
of working with the library?
The one advantage I see is that it would be using the same core as
maven and thus guaranteed to be compatible (where as now we know there
is scenarios where we are not quite right).
--
Cheers,
Peter Donald
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
Thoughts in-lined below. . .
On 11/01/2011 11:40 PM, Peter Donald wrote:
> Hi,
>
> On Sat, Oct 29, 2011 at 5:43 AM, Michael Guymon
> <mi...@gmail.com> wrote:
>> The integration with buildr is crude and for some reason the rdoc is no
>> longer formated correct. I will update it to make it legible again.
>>
>> https://github.com/mguymon/buildr-resolver
> nice.
( I fixed the rdocs )
>
>> This is the ruby wrapper for the Aether java libs, which buildr-resolver
>> depends on
>>
>> https://github.com/mguymon/naether
> That is quite neat. I wonder if the core of buildr could move across
> to using (n)Aether and if there is much benefit from that? Last time I
> looked the project was still relatively volatile. What did you think
> of working with the library?
>
> The one advantage I see is that it would be using the same core as
> maven and thus guaranteed to be compatible (where as now we know there
> is scenarios where we are not quite right).
Aether really is a beast of a library, there is a lot of 'action' going
on. That is one of the reasons I crammed it into a wrapper, Aether needs
a lot of prep code for it to run properly. After working out the kinks
of setting it up correctly, Aether has been functioning without issue
for the past 4 months in my projects.
Re: Experiences with transitive dependencies in buildr
Posted by Peter Donald <pe...@realityforge.org>.
On Fri, Nov 11, 2011 at 3:21 AM, Michael Guymon
<mi...@gmail.com> wrote:
> So there seems to be agreement on a initial solution. Should this be tracked
> in Jira?
Sounds good.
> I plan on helping out, but work is eating all my spare time right now. On
> top of that, I have a queue of patches I need to send out, so I will not be
> able to produce anything in the near future.
great ;)
Anytime you do manage will be appreciated.
--
Cheers,
Peter Donald
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
So there seems to be agreement on a initial solution. Should this be
tracked in Jira?
I plan on helping out, but work is eating all my spare time right now.
On top of that, I have a queue of patches I need to send out, so I will
not be able to produce anything in the near future.
--M
On 11/04/2011 06:13 AM, Peter Tillotson wrote:
> This sounds pretty good - some thoughts inline below
>
>> Dependency Resolution
>>
>> * Dependency resolution is optional
>> * Resolve Transitive Dependencies for an artifact(s)
>> * Create/Rebuild a dependency file
>> * Lock dependencies based on the dependency file
>
> Transitive resolution should be capable of producing the same dependencies as maven ( possibly via an interface compatible plugin ) and support the full maven spec.
>
> I'd add filtering and blacklist has been useful as well. I always have to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is a reasonable compile dependency that shouldn't get into runtime.
> If the dependencies file something like the following
>
> runtime:
> - org.apache.cassandra:cassalndra-all:1.0.1
>
> exclude:
> - *:servlet-api:*
> - *:junit:*
>
> That would be pretty handy - I really like the idea of the dependency report effectively acting as the whitelist / blacklist so when the universe changes my build file doesn't necessarily have to :-)
>
>> Maven interop
>>
>> * Generate a maven POM based on a Buildr project
>> * Create& deploy maven friendly artifacts based on a Buildr project
>>
>> Would there be any benefit for having Ivy interoperability as well?
>
> p
>
>
> ________________________________
> From: Michael Guymon<mi...@gmail.com>
> To: dev@buildr.apache.org
> Sent: Thursday, 3 November 2011, 23:16
> Subject: Re: Experiences with transitive dependencies in buildr
>
>
> So based on the discussion, it sounds like the following solutions would work well:
>
> Dependency Resolution
>
> * Dependency resolution is optional
> * Resolve Transitive Dependencies for an artifact(s)
> * Create/Rebuild a dependency file
> * Lock dependencies based on the dependency file
>
> Maven interop
>
> * Generate a maven POM based on a Buildr project
> * Create& deploy maven friendly artifacts based on a Buildr project
>
> Would there be any benefit for having Ivy interoperability as well?
>
> On 11/02/2011 09:59 PM, Peter Donald wrote:
>> Hi,
>>
>> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com> wrote:
>>> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
>> I would hope not.
>>
>> I am not a huge fan of transitive closure across the builds when you
>> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
>> supports it seems). I don't object so much to the network chattiness
>> but due to the un-reproducible of builds.
>>
>> Aether would mainly used as the API for interacting with Maven repos
>> and for implementing transitive dependencies of maven artifacts.
>>
>>
Re: Experiences with transitive dependencies in buildr
Posted by Peter Donald <pe...@realityforge.org>.
On Fri, Dec 30, 2011 at 11:00 AM, Michael Guymon
<mi...@gmail.com> wrote:
> Yeah, did not even think of that. That makes a good argument for using a dsl
> with the lock file, something along the lines of:
I still really like the idea of a yml file because it is much easier
to process in other programs. At one stage I was managing the
dependencies externally and I have also played around with patching
the yml file to achieve something similar to what the gump project
used to do. I am not sure if this functionality would no longer be
required if buildr had better dependency management.
--
Cheers,
Peter Donald
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
Yeah, did not even think of that. That makes a good argument for using a
dsl with the lock file, something along the lines of:
compile do
jar 'org.apache:tomcat:0.1'
end
test do
jar 'junit:junit:1.0'
end
The addition thing I pondered a little was scoping for projects. Have
global scopes that all projects inherit and individual scopes for each
project:
# global compile
compile do
jar 'org.apache:tomcat:0.1'
end
# global test
test do
jar 'junit:junit:1.0'
end
# a_project_name only dependencies
project( :a_project_name ) do
# a_project_name's compile
compile do
jar 'org.apache:solr:0.1'
end
end
On 12/29/2011 04:42 PM, Alex Boisvert wrote:
> Neat!
>
> I think something missing (unless I missed it) is the notion of
> scopes/groups for artifacts.
>
> With respect to Buildr integration, it would be nice if it could reuse the
> repositories specified in the buildfile (e.g. Buildr.repositories.remote)
> and maybe allow mapping of groups to Buildr's built-in
> compile/test/package/run/... tasks, similar to how ivy4r does it, e.g.,
>
> ivy.conf(
> :compile => ['buildtime', 'default', 'hadoop'],
> :test => ['buildtime', 'default', 'test'],
> :package => 'default'
> )
>
> (there are alternate syntaxes for this, I'm just copying& pasting the
> closest example I had).
>
> alex
>
> On Wed, Dec 28, 2011 at 11:43 AM, Michael Guymon
> <mi...@gmail.com>wrote:
>
>> So I have slowly being making progress on a dependency manager for buildr
>> and have put together a very simple implementation based on Bundler using
>> Aether for the transitive resolution. I would love some feed back on what I
>> have pieced together so far.
>>
>> https://github.com/mguymon/**lockjar<https://github.com/mguymon/lockjar>
>>
>> A Jarfile is used to specify the repos and dependencies, an example:
>>
>> repository 'http://repository.jboss.org/**nexus/content/groups/public-**
>> jboss<http://repository.jboss.org/nexus/content/groups/public-jboss>'
>> jar "com.slackworks:model-citizen:**0.1"
>> jar "org.apache.mina:mina-core:2.**0.4" do exclude "com.package",
>> "com.another.package:blah:7" end
>>
>> Would produce a Jarfile.lock with absolute paths to the local jars, an
>> example:
>>
>> ---
>>
>> dependencies:
>> com.slackworks:model-citizen:**0.1: /home/zinger/devel/projects/**
>> swx/lockjar/tmp/test-repo/com/**slackworks/model-citizen/0.1/**
>> model-citizen-0.1.jar
>> org.apache.mina:mina-core:jar:**2.0.4: /home/zinger/devel/projects/**
>> swx/lockjar/tmp/test-repo/org/**apache/mina/mina-core/2.0.4/**
>> mina-core-2.0.4.jar
>> org.slf4j:slf4j-api:jar:1.6.1: /home/zinger/devel/projects/**
>> swx/lockjar/tmp/test-repo/org/**slf4j/slf4j-api/1.6.1/slf4j-**
>> api-1.6.1.jar
>>
>> repositories:
>> - http://repository.jboss.org/**nexus/content/groups/public-**jboss<http://repository.jboss.org/nexus/content/groups/public-jboss>
>>
>>
>> The Jarfile.lock is standard yaml, not sure if a custom dsl is needed.
>> Similar to bundler, the Jarfile.lock has to be generated before getting
>> access to the dependencies. Once the Jarfile.lock is generated, Buildr can
>> reuse it instead of checking for transitive dependencies every time.
>>
>> Next step is moving the project towards something that integrates nicely
>> with Buildr. Maybe allow the Jarfile to be defined directly in the
>> buildfile?
>>
>> thanks,
>> Michael
>>
>>
>> On 11/04/2011 06:13 AM, Peter Tillotson wrote:
>>
>>> This sounds pretty good - some thoughts inline below
>>>
>>> Dependency Resolution
>>>> * Dependency resolution is optional
>>>> * Resolve Transitive Dependencies for an artifact(s)
>>>> * Create/Rebuild a dependency file
>>>> * Lock dependencies based on the dependency file
>>>>
>>> Transitive resolution should be capable of producing the same
>>> dependencies as maven ( possibly via an interface compatible plugin ) and
>>> support the full maven spec.
>>>
>>> I'd add filtering and blacklist has been useful as well. I always have
>>> to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is
>>> a reasonable compile dependency that shouldn't get into runtime. If the
>>> dependencies file something like the following
>>>
>>> runtime:
>>> - org.apache.cassandra:**cassalndra-all:1.0.1
>>> exclude:
>>> - *:servlet-api:*
>>> - *:junit:*
>>>
>>> That would be pretty handy - I really like the idea of the dependency
>>> report effectively acting as the whitelist / blacklist so when the universe
>>> changes my build file doesn't necessarily have to :-)
>>>
>>> Maven interop
>>>> * Generate a maven POM based on a Buildr project
>>>> * Create& deploy maven friendly artifacts based on a Buildr project
>>>>
>>>>
>>>> Would there be any benefit for having Ivy interoperability as well?
>>>>
>>> p
>>>
>>> ______________________________**__
>>> From: Michael Guymon<mi...@gmail.com>
>>> To: dev@buildr.apache.org
>>> Sent: Thursday, 3 November 2011, 23:16
>>> Subject: Re: Experiences with transitive dependencies in buildr
>>>
>>>
>>> So based on the discussion, it sounds like the following solutions would
>>> work well:
>>>
>>> Dependency Resolution
>>>
>>> * Dependency resolution is optional
>>> * Resolve Transitive Dependencies for an artifact(s)
>>> * Create/Rebuild a dependency file
>>> * Lock dependencies based on the dependency file
>>>
>>> Maven interop
>>>
>>> * Generate a maven POM based on a Buildr project
>>> * Create& deploy maven friendly artifacts based on a Buildr project
>>>
>>>
>>> Would there be any benefit for having Ivy interoperability as well?
>>>
>>> On 11/02/2011 09:59 PM, Peter Donald wrote:
>>>
>>>> Hi,
>>>>
>>>> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com>
>>>> wrote:
>>>>
>>>>> If this becomes part of the core of buildr as Peter suggested, would
>>>>> there be performance impact when not using transitive dependencies?
>>>>>
>>>> I would hope not.
>>>>
>>>> I am not a huge fan of transitive closure across the builds when you
>>>> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
>>>> supports it seems). I don't object so much to the network chattiness
>>>> but due to the un-reproducible of builds.
>>>>
>>>> Aether would mainly used as the API for interacting with Maven repos
>>>> and for implementing transitive dependencies of maven artifacts.
>>>>
>>>>
>>>>
Re: Experiences with transitive dependencies in buildr
Posted by Alex Boisvert <al...@gmail.com>.
Neat!
I think something missing (unless I missed it) is the notion of
scopes/groups for artifacts.
With respect to Buildr integration, it would be nice if it could reuse the
repositories specified in the buildfile (e.g. Buildr.repositories.remote)
and maybe allow mapping of groups to Buildr's built-in
compile/test/package/run/... tasks, similar to how ivy4r does it, e.g.,
ivy.conf(
:compile => ['buildtime', 'default', 'hadoop'],
:test => ['buildtime', 'default', 'test'],
:package => 'default'
)
(there are alternate syntaxes for this, I'm just copying & pasting the
closest example I had).
alex
On Wed, Dec 28, 2011 at 11:43 AM, Michael Guymon
<mi...@gmail.com>wrote:
>
> So I have slowly being making progress on a dependency manager for buildr
> and have put together a very simple implementation based on Bundler using
> Aether for the transitive resolution. I would love some feed back on what I
> have pieced together so far.
>
> https://github.com/mguymon/**lockjar <https://github.com/mguymon/lockjar>
>
> A Jarfile is used to specify the repos and dependencies, an example:
>
> repository 'http://repository.jboss.org/**nexus/content/groups/public-**
> jboss <http://repository.jboss.org/nexus/content/groups/public-jboss>'
> jar "com.slackworks:model-citizen:**0.1"
> jar "org.apache.mina:mina-core:2.**0.4" do exclude "com.package",
> "com.another.package:blah:7" end
>
> Would produce a Jarfile.lock with absolute paths to the local jars, an
> example:
>
> ---
>
> dependencies:
> com.slackworks:model-citizen:**0.1: /home/zinger/devel/projects/**
> swx/lockjar/tmp/test-repo/com/**slackworks/model-citizen/0.1/**
> model-citizen-0.1.jar
> org.apache.mina:mina-core:jar:**2.0.4: /home/zinger/devel/projects/**
> swx/lockjar/tmp/test-repo/org/**apache/mina/mina-core/2.0.4/**
> mina-core-2.0.4.jar
> org.slf4j:slf4j-api:jar:1.6.1: /home/zinger/devel/projects/**
> swx/lockjar/tmp/test-repo/org/**slf4j/slf4j-api/1.6.1/slf4j-**
> api-1.6.1.jar
>
> repositories:
> - http://repository.jboss.org/**nexus/content/groups/public-**jboss<http://repository.jboss.org/nexus/content/groups/public-jboss>
>
>
> The Jarfile.lock is standard yaml, not sure if a custom dsl is needed.
> Similar to bundler, the Jarfile.lock has to be generated before getting
> access to the dependencies. Once the Jarfile.lock is generated, Buildr can
> reuse it instead of checking for transitive dependencies every time.
>
> Next step is moving the project towards something that integrates nicely
> with Buildr. Maybe allow the Jarfile to be defined directly in the
> buildfile?
>
> thanks,
> Michael
>
>
> On 11/04/2011 06:13 AM, Peter Tillotson wrote:
>
>> This sounds pretty good - some thoughts inline below
>>
>> Dependency Resolution
>>>
>>> * Dependency resolution is optional
>>> * Resolve Transitive Dependencies for an artifact(s)
>>> * Create/Rebuild a dependency file
>>> * Lock dependencies based on the dependency file
>>>
>>
>> Transitive resolution should be capable of producing the same
>> dependencies as maven ( possibly via an interface compatible plugin ) and
>> support the full maven spec.
>>
>> I'd add filtering and blacklist has been useful as well. I always have
>> to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is
>> a reasonable compile dependency that shouldn't get into runtime. If the
>> dependencies file something like the following
>>
>> runtime:
>> - org.apache.cassandra:**cassalndra-all:1.0.1
>> exclude:
>> - *:servlet-api:*
>> - *:junit:*
>>
>> That would be pretty handy - I really like the idea of the dependency
>> report effectively acting as the whitelist / blacklist so when the universe
>> changes my build file doesn't necessarily have to :-)
>>
>> Maven interop
>>>
>>> * Generate a maven POM based on a Buildr project
>>> * Create& deploy maven friendly artifacts based on a Buildr project
>>>
>>>
>>> Would there be any benefit for having Ivy interoperability as well?
>>>
>>
>> p
>>
>> ______________________________**__
>> From: Michael Guymon<mi...@gmail.com>
>> >
>> To: dev@buildr.apache.org
>> Sent: Thursday, 3 November 2011, 23:16
>> Subject: Re: Experiences with transitive dependencies in buildr
>>
>>
>> So based on the discussion, it sounds like the following solutions would
>> work well:
>>
>> Dependency Resolution
>>
>> * Dependency resolution is optional
>> * Resolve Transitive Dependencies for an artifact(s)
>> * Create/Rebuild a dependency file
>> * Lock dependencies based on the dependency file
>>
>> Maven interop
>>
>> * Generate a maven POM based on a Buildr project
>> * Create& deploy maven friendly artifacts based on a Buildr project
>>
>>
>> Would there be any benefit for having Ivy interoperability as well?
>>
>> On 11/02/2011 09:59 PM, Peter Donald wrote:
>>
>>> Hi,
>>>
>>> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com>
>>> wrote:
>>>
>>>> If this becomes part of the core of buildr as Peter suggested, would
>>>> there be performance impact when not using transitive dependencies?
>>>>
>>> I would hope not.
>>>
>>> I am not a huge fan of transitive closure across the builds when you
>>> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
>>> supports it seems). I don't object so much to the network chattiness
>>> but due to the un-reproducible of builds.
>>>
>>> Aether would mainly used as the API for interacting with Maven repos
>>> and for implementing transitive dependencies of maven artifacts.
>>>
>>>
>>>
>
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
I have a new xample Jarfile and Jarfile.lock:
https://gist.github.com/1734249
I added support so Maven POMs can be used as dependencies along with
artifact notation.
To make it work, you need to create a Jarfile, such one in the example.
Then you generate the lock file (Jarfile.lock) by calling:
LockJar.lock()
With a lock file, you can get an array of resolved jars by calling:
LockJar.list()
or the resolved jars in the lock file directly into the classpath by
calling:
LockJar.load()
The next step is to wire in support for LockJar into buildr. If a lock
file is detected, automatically run LockJar for tasks like compile and test.
On 12/28/2011 03:02 PM, Rhett Sutphin wrote:
> Hi Michael,
>
> On Dec 28, 2011, at 1:43 PM, Michael Guymon wrote:
>
>> So I have slowly being making progress on a dependency manager for buildr and have put together a very simple implementation based on Bundler using Aether for the transitive resolution. I would love some feed back on what I have pieced together so far.
>>
>> https://github.com/mguymon/lockjar
>>
>> A Jarfile is used to specify the repos and dependencies, an example:
>>
>> repository 'http://repository.jboss.org/nexus/content/groups/public-jboss'
>> jar "com.slackworks:model-citizen:0.1"
>> jar "org.apache.mina:mina-core:2.0.4" do exclude "com.package", "com.another.package:blah:7" end
>>
>> Would produce a Jarfile.lock with absolute paths to the local jars, an example:
>>
>> ---
>>
>> dependencies:
>> com.slackworks:model-citizen:0.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/com/slackworks/model-citizen/0.1/model-citizen-0.1.jar
>> org.apache.mina:mina-core:jar:2.0.4: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/apache/mina/mina-core/2.0.4/mina-core-2.0.4.jar
>> org.slf4j:slf4j-api:jar:1.6.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
>>
>> repositories:
>> - http://repository.jboss.org/nexus/content/groups/public-jboss
>>
>>
>> The Jarfile.lock is standard yaml, not sure if a custom dsl is needed. Similar to bundler, the Jarfile.lock has to be generated before getting access to the dependencies. Once the Jarfile.lock is generated, Buildr can reuse it instead of checking for transitive dependencies every time.
> This is a very interesting idea. Might I suggest, though, that you have the lockfile contain just the list of dependent artifacts? That way you could check it in and use it to ensure that all developers/CI/etc. are using the same artifact versions. Converting from a buildr artifact name to the local path is not an expensive operation.
>
> Rhett
>
>> Next step is moving the project towards something that integrates nicely with Buildr. Maybe allow the Jarfile to be defined directly in the buildfile?
>>
>> thanks,
>> Michael
>>
>> On 11/04/2011 06:13 AM, Peter Tillotson wrote:
>>> This sounds pretty good - some thoughts inline below
>>>
>>>> Dependency Resolution
>>>>
>>>> * Dependency resolution is optional
>>>> * Resolve Transitive Dependencies for an artifact(s)
>>>> * Create/Rebuild a dependency file
>>>> * Lock dependencies based on the dependency file
>>> Transitive resolution should be capable of producing the same dependencies as maven ( possibly via an interface compatible plugin ) and support the full maven spec.
>>>
>>> I'd add filtering and blacklist has been useful as well. I always have to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is a reasonable compile dependency that shouldn't get into runtime. If the dependencies file something like the following
>>>
>>> runtime:
>>> - org.apache.cassandra:cassalndra-all:1.0.1
>>> exclude:
>>> - *:servlet-api:*
>>> - *:junit:*
>>>
>>> That would be pretty handy - I really like the idea of the dependency report effectively acting as the whitelist / blacklist so when the universe changes my build file doesn't necessarily have to :-)
>>>
>>>> Maven interop
>>>>
>>>> * Generate a maven POM based on a Buildr project
>>>> * Create& deploy maven friendly artifacts based on a Buildr project
>>>>
>>>> Would there be any benefit for having Ivy interoperability as well?
>>> p
>>>
>>> ________________________________
>>> From: Michael Guymon<mi...@gmail.com>
>>> To: dev@buildr.apache.org
>>> Sent: Thursday, 3 November 2011, 23:16
>>> Subject: Re: Experiences with transitive dependencies in buildr
>>>
>>>
>>> So based on the discussion, it sounds like the following solutions would work well:
>>>
>>> Dependency Resolution
>>>
>>> * Dependency resolution is optional
>>> * Resolve Transitive Dependencies for an artifact(s)
>>> * Create/Rebuild a dependency file
>>> * Lock dependencies based on the dependency file
>>>
>>> Maven interop
>>>
>>> * Generate a maven POM based on a Buildr project
>>> * Create& deploy maven friendly artifacts based on a Buildr project
>>>
>>> Would there be any benefit for having Ivy interoperability as well?
>>>
>>> On 11/02/2011 09:59 PM, Peter Donald wrote:
>>>> Hi,
>>>>
>>>> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com> wrote:
>>>>> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
>>>> I would hope not.
>>>>
>>>> I am not a huge fan of transitive closure across the builds when you
>>>> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
>>>> supports it seems). I don't object so much to the network chattiness
>>>> but due to the un-reproducible of builds.
>>>>
>>>> Aether would mainly used as the API for interacting with Maven repos
>>>> and for implementing transitive dependencies of maven artifacts.
>>>>
>>>>
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
Hi Rehett,
On 12/28/2011 03:02 PM, Rhett Sutphin wrote:
>> ---
>> >
>> > dependencies:
>> > com.slackworks:model-citizen:0.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/com/slackworks/model-citizen/0.1/model-citizen-0.1.jar
>> > org.apache.mina:mina-core:jar:2.0.4: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/apache/mina/mina-core/2.0.4/mina-core-2.0.4.jar
>> > org.slf4j:slf4j-api:jar:1.6.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
>> >
>> > repositories:
>> > -http://repository.jboss.org/nexus/content/groups/public-jboss
>> >
>> >
>> > The Jarfile.lock is standard yaml, not sure if a custom dsl is needed. Similar to bundler, the Jarfile.lock has to be generated before getting access to the dependencies. Once the Jarfile.lock is generated, Buildr can reuse it instead of checking for transitive dependencies every time.
> This is a very interesting idea. Might I suggest, though, that you have the lockfile contain just the list of dependent artifacts? That way you could check it in and use it to ensure that all developers/CI/etc. are using the same artifact versions. Converting from a buildr artifact name to the local path is not an expensive operation.
That makes sense. I wanted to support jars that are not hosted in a
maven repository and have to be stored with a project. This could be
handled similar to the above example, artifact name followed by a
relative path. Otherwise it would just be the artifact name.
Re: Experiences with transitive dependencies in buildr
Posted by Rhett Sutphin <rh...@detailedbalance.net>.
Hi Michael,
On Dec 28, 2011, at 1:43 PM, Michael Guymon wrote:
>
> So I have slowly being making progress on a dependency manager for buildr and have put together a very simple implementation based on Bundler using Aether for the transitive resolution. I would love some feed back on what I have pieced together so far.
>
> https://github.com/mguymon/lockjar
>
> A Jarfile is used to specify the repos and dependencies, an example:
>
> repository 'http://repository.jboss.org/nexus/content/groups/public-jboss'
> jar "com.slackworks:model-citizen:0.1"
> jar "org.apache.mina:mina-core:2.0.4" do exclude "com.package", "com.another.package:blah:7" end
>
> Would produce a Jarfile.lock with absolute paths to the local jars, an example:
>
> ---
>
> dependencies:
> com.slackworks:model-citizen:0.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/com/slackworks/model-citizen/0.1/model-citizen-0.1.jar
> org.apache.mina:mina-core:jar:2.0.4: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/apache/mina/mina-core/2.0.4/mina-core-2.0.4.jar
> org.slf4j:slf4j-api:jar:1.6.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
>
> repositories:
> - http://repository.jboss.org/nexus/content/groups/public-jboss
>
>
> The Jarfile.lock is standard yaml, not sure if a custom dsl is needed. Similar to bundler, the Jarfile.lock has to be generated before getting access to the dependencies. Once the Jarfile.lock is generated, Buildr can reuse it instead of checking for transitive dependencies every time.
This is a very interesting idea. Might I suggest, though, that you have the lockfile contain just the list of dependent artifacts? That way you could check it in and use it to ensure that all developers/CI/etc. are using the same artifact versions. Converting from a buildr artifact name to the local path is not an expensive operation.
Rhett
>
> Next step is moving the project towards something that integrates nicely with Buildr. Maybe allow the Jarfile to be defined directly in the buildfile?
>
> thanks,
> Michael
>
> On 11/04/2011 06:13 AM, Peter Tillotson wrote:
>> This sounds pretty good - some thoughts inline below
>>
>>> Dependency Resolution
>>>
>>> * Dependency resolution is optional
>>> * Resolve Transitive Dependencies for an artifact(s)
>>> * Create/Rebuild a dependency file
>>> * Lock dependencies based on the dependency file
>>
>> Transitive resolution should be capable of producing the same dependencies as maven ( possibly via an interface compatible plugin ) and support the full maven spec.
>>
>> I'd add filtering and blacklist has been useful as well. I always have to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is a reasonable compile dependency that shouldn't get into runtime. If the dependencies file something like the following
>>
>> runtime:
>> - org.apache.cassandra:cassalndra-all:1.0.1
>> exclude:
>> - *:servlet-api:*
>> - *:junit:*
>>
>> That would be pretty handy - I really like the idea of the dependency report effectively acting as the whitelist / blacklist so when the universe changes my build file doesn't necessarily have to :-)
>>
>>> Maven interop
>>>
>>> * Generate a maven POM based on a Buildr project
>>> * Create& deploy maven friendly artifacts based on a Buildr project
>>>
>>> Would there be any benefit for having Ivy interoperability as well?
>>
>> p
>>
>> ________________________________
>> From: Michael Guymon<mi...@gmail.com>
>> To: dev@buildr.apache.org
>> Sent: Thursday, 3 November 2011, 23:16
>> Subject: Re: Experiences with transitive dependencies in buildr
>>
>>
>> So based on the discussion, it sounds like the following solutions would work well:
>>
>> Dependency Resolution
>>
>> * Dependency resolution is optional
>> * Resolve Transitive Dependencies for an artifact(s)
>> * Create/Rebuild a dependency file
>> * Lock dependencies based on the dependency file
>>
>> Maven interop
>>
>> * Generate a maven POM based on a Buildr project
>> * Create& deploy maven friendly artifacts based on a Buildr project
>>
>> Would there be any benefit for having Ivy interoperability as well?
>>
>> On 11/02/2011 09:59 PM, Peter Donald wrote:
>>> Hi,
>>>
>>> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com> wrote:
>>>> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
>>> I would hope not.
>>>
>>> I am not a huge fan of transitive closure across the builds when you
>>> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
>>> supports it seems). I don't object so much to the network chattiness
>>> but due to the un-reproducible of builds.
>>>
>>> Aether would mainly used as the API for interacting with Maven repos
>>> and for implementing transitive dependencies of maven artifacts.
>>>
>>>
>
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
So I have slowly being making progress on a dependency manager for
buildr and have put together a very simple implementation based on
Bundler using Aether for the transitive resolution. I would love some
feed back on what I have pieced together so far.
https://github.com/mguymon/lockjar
A Jarfile is used to specify the repos and dependencies, an example:
repository 'http://repository.jboss.org/nexus/content/groups/public-jboss'
jar "com.slackworks:model-citizen:0.1"
jar "org.apache.mina:mina-core:2.0.4" do exclude "com.package",
"com.another.package:blah:7" end
Would produce a Jarfile.lock with absolute paths to the local jars, an
example:
---
dependencies:
com.slackworks:model-citizen:0.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/com/slackworks/model-citizen/0.1/model-citizen-0.1.jar
org.apache.mina:mina-core:jar:2.0.4: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/apache/mina/mina-core/2.0.4/mina-core-2.0.4.jar
org.slf4j:slf4j-api:jar:1.6.1: /home/zinger/devel/projects/swx/lockjar/tmp/test-repo/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
repositories:
- http://repository.jboss.org/nexus/content/groups/public-jboss
The Jarfile.lock is standard yaml, not sure if a custom dsl is needed.
Similar to bundler, the Jarfile.lock has to be generated before getting
access to the dependencies. Once the Jarfile.lock is generated, Buildr
can reuse it instead of checking for transitive dependencies every time.
Next step is moving the project towards something that integrates nicely
with Buildr. Maybe allow the Jarfile to be defined directly in the
buildfile?
thanks,
Michael
On 11/04/2011 06:13 AM, Peter Tillotson wrote:
> This sounds pretty good - some thoughts inline below
>
>> Dependency Resolution
>>
>> * Dependency resolution is optional
>> * Resolve Transitive Dependencies for an artifact(s)
>> * Create/Rebuild a dependency file
>> * Lock dependencies based on the dependency file
>
> Transitive resolution should be capable of producing the same dependencies as maven ( possibly via an interface compatible plugin ) and support the full maven spec.
>
> I'd add filtering and blacklist has been useful as well. I always have to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is a reasonable compile dependency that shouldn't get into runtime.
> If the dependencies file something like the following
>
> runtime:
> - org.apache.cassandra:cassalndra-all:1.0.1
>
> exclude:
> - *:servlet-api:*
> - *:junit:*
>
> That would be pretty handy - I really like the idea of the dependency report effectively acting as the whitelist / blacklist so when the universe changes my build file doesn't necessarily have to :-)
>
>> Maven interop
>>
>> * Generate a maven POM based on a Buildr project
>> * Create& deploy maven friendly artifacts based on a Buildr project
>>
>> Would there be any benefit for having Ivy interoperability as well?
>
> p
>
>
> ________________________________
> From: Michael Guymon<mi...@gmail.com>
> To: dev@buildr.apache.org
> Sent: Thursday, 3 November 2011, 23:16
> Subject: Re: Experiences with transitive dependencies in buildr
>
>
> So based on the discussion, it sounds like the following solutions would work well:
>
> Dependency Resolution
>
> * Dependency resolution is optional
> * Resolve Transitive Dependencies for an artifact(s)
> * Create/Rebuild a dependency file
> * Lock dependencies based on the dependency file
>
> Maven interop
>
> * Generate a maven POM based on a Buildr project
> * Create& deploy maven friendly artifacts based on a Buildr project
>
> Would there be any benefit for having Ivy interoperability as well?
>
> On 11/02/2011 09:59 PM, Peter Donald wrote:
>> Hi,
>>
>> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com> wrote:
>>> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
>> I would hope not.
>>
>> I am not a huge fan of transitive closure across the builds when you
>> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
>> supports it seems). I don't object so much to the network chattiness
>> but due to the un-reproducible of builds.
>>
>> Aether would mainly used as the API for interacting with Maven repos
>> and for implementing transitive dependencies of maven artifacts.
>>
>>
Re: Experiences with transitive dependencies in buildr
Posted by Stephen Haberman <st...@exigencecorp.com>.
> I'd wdd filtering and blacklist has been useful as well.
FWIW, if you want a works-now solution, ixy.xml/ivy4r can have <exclude>
statements that work against transitive dependencies. Not to take away
from the long-term dependency resolution discussions, which I'm glad to
see happening.
- Stephen
Re: Experiences with transitive dependencies in buildr
Posted by Peter Tillotson <sl...@yahoo.co.uk>.
This sounds pretty good - some thoughts inline below
> Dependency Resolution
>
>* Dependency resolution is optional
>* Resolve Transitive Dependencies for an artifact(s)
>* Create/Rebuild a dependency file
>* Lock dependencies based on the dependency file
Transitive resolution should be capable of producing the same dependencies as maven ( possibly via an interface compatible plugin ) and support the full maven spec.
I'd add filtering and blacklist has been useful as well. I always have to package(:war).libs.reject! { |lib| lib.group == 'servlet-api' } this is a reasonable compile dependency that shouldn't get into runtime.
If the dependencies file something like the following
runtime:
- org.apache.cassandra:cassalndra-all:1.0.1
exclude:
- *:servlet-api:*
- *:junit:*
That would be pretty handy - I really like the idea of the dependency report effectively acting as the whitelist / blacklist so when the universe changes my build file doesn't necessarily have to :-)
>Maven interop
>
>* Generate a maven POM based on a Buildr project
>* Create & deploy maven friendly artifacts based on a Buildr project
>
>Would there be any benefit for having Ivy interoperability as well?
p
________________________________
From: Michael Guymon <mi...@gmail.com>
To: dev@buildr.apache.org
Sent: Thursday, 3 November 2011, 23:16
Subject: Re: Experiences with transitive dependencies in buildr
So based on the discussion, it sounds like the following solutions would work well:
Dependency Resolution
* Dependency resolution is optional
* Resolve Transitive Dependencies for an artifact(s)
* Create/Rebuild a dependency file
* Lock dependencies based on the dependency file
Maven interop
* Generate a maven POM based on a Buildr project
* Create & deploy maven friendly artifacts based on a Buildr project
Would there be any benefit for having Ivy interoperability as well?
On 11/02/2011 09:59 PM, Peter Donald wrote:
> Hi,
>
> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com> wrote:
>> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
> I would hope not.
>
> I am not a huge fan of transitive closure across the builds when you
> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
> supports it seems). I don't object so much to the network chattiness
> but due to the un-reproducible of builds.
>
> Aether would mainly used as the API for interacting with Maven repos
> and for implementing transitive dependencies of maven artifacts.
>
>
Re: Experiences with transitive dependencies in buildr
Posted by Tal Rotbart <re...@gmail.com>.
Hi Peter & Michael,
With buildr-dependency-extensions
(https://github.com/jvshahid/buildr-dependency-extensions) you get
both a POM generator and transitive dependency resolution (both
optional).
So essentially everything except:
> * Create/Rebuild a dependency file
> * Lock dependencies based on the dependency file
It's as easy as:
require 'buildr-dependency-extensions'
define "wiki-index" do
extend PomGenerator
extend TransitiveDependencies
..
end
buildr upload would result in a Maven repo compatible POM being uploaded.
I've been using it successfully for the last few months based on a
recommendation from the user mailing list.
Cheers,
Tal
On 4 November 2011 10:30, Peter Donald <pe...@realityforge.org> wrote:
>
> On Fri, Nov 4, 2011 at 10:16 AM, Michael Guymon
> <mi...@gmail.com> wrote:
> > So based on the discussion, it sounds like the following solutions would
> > work well:
> >
> > Dependency Resolution
> >
> > * Dependency resolution is optional
> > * Resolve Transitive Dependencies for an artifact(s)
> > * Create/Rebuild a dependency file
> > * Lock dependencies based on the dependency file
>
> That sounds about right.
>
> > Maven interop
> >
> > * Generate a maven POM based on a Buildr project
> > * Create & deploy maven friendly artifacts based on a Buildr project
>
> That would be very useful. A couple of people I have talked to in the
> past would be extremely happy if we could generate the maven pom with
> enough information that would allow it to be uploaded to maven
> central.
>
> > Would there be any benefit for having Ivy interoperability as well?
>
> I haven't seen much use of it in the wild so I don't see it as a
> priority but others may disagree ;)
>
> --
> Cheers,
>
> Peter Donald
Re: Experiences with transitive dependencies in buildr
Posted by Peter Donald <pe...@realityforge.org>.
On Fri, Nov 4, 2011 at 10:16 AM, Michael Guymon
<mi...@gmail.com> wrote:
> So based on the discussion, it sounds like the following solutions would
> work well:
>
> Dependency Resolution
>
> * Dependency resolution is optional
> * Resolve Transitive Dependencies for an artifact(s)
> * Create/Rebuild a dependency file
> * Lock dependencies based on the dependency file
That sounds about right.
> Maven interop
>
> * Generate a maven POM based on a Buildr project
> * Create & deploy maven friendly artifacts based on a Buildr project
That would be very useful. A couple of people I have talked to in the
past would be extremely happy if we could generate the maven pom with
enough information that would allow it to be uploaded to maven
central.
> Would there be any benefit for having Ivy interoperability as well?
I haven't seen much use of it in the wild so I don't see it as a
priority but others may disagree ;)
--
Cheers,
Peter Donald
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
So based on the discussion, it sounds like the following solutions would
work well:
Dependency Resolution
* Dependency resolution is optional
* Resolve Transitive Dependencies for an artifact(s)
* Create/Rebuild a dependency file
* Lock dependencies based on the dependency file
Maven interop
* Generate a maven POM based on a Buildr project
* Create & deploy maven friendly artifacts based on a Buildr project
Would there be any benefit for having Ivy interoperability as well?
On 11/02/2011 09:59 PM, Peter Donald wrote:
> Hi,
>
> On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu<ca...@yahoo.com> wrote:
>> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
> I would hope not.
>
> I am not a huge fan of transitive closure across the builds when you
> can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
> supports it seems). I don't object so much to the network chattiness
> but due to the un-reproducible of builds.
>
> Aether would mainly used as the API for interacting with Maven repos
> and for implementing transitive dependencies of maven artifacts.
>
>
Re: Experiences with transitive dependencies in buildr
Posted by Peter Donald <pe...@realityforge.org>.
Hi,
On Thu, Nov 3, 2011 at 12:26 AM, Chiaming Hsu <ca...@yahoo.com> wrote:
> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
I would hope not.
I am not a huge fan of transitive closure across the builds when you
can't lock it down to a specific set (like Gemfile.lock or what Ivy4r
supports it seems). I don't object so much to the network chattiness
but due to the un-reproducible of builds.
Aether would mainly used as the API for interacting with Maven repos
and for implementing transitive dependencies of maven artifacts.
--
Cheers,
Peter Donald
Re: Experiences with transitive dependencies in buildr
Posted by Alex Boisvert <al...@gmail.com>.
+1
My personal view is that,
1) Buildr shouldn't force any dependency resolution framework on anybody.
It should always be possible to use explicit dependency lists (aka
whitelisting) -- either local files (non-Maven artifacts) or Maven
artifacts -- or use 3rd-party plugins.
2) We should keep supporting and improving Maven artifact resolution in
Buildr (core) because it's the most widely used distribution scheme in the
Java world. If that means eventually reusing Aether to get real good
interoperability, so be it.
I'll say in passing that a great feature of any dependency resolution
framework is to allow/support caching the results locally to avoid both
recomputing and network usage every time.
Ivy4r supports this (though it's not the default) and saves the result in
YAML files (one per ivy conf). This has the advantage that you can easily
peek into what dependencies are used at any time and if you check it into
version control then you can also easily monitor dependency changes and
keep dependencies consistent across multiple checkouts.
alex
On Wed, Nov 2, 2011 at 8:36 AM, Michael Guymon <mi...@gmail.com>wrote:
>
> I could not agree more, Buildr should stay lean and mean. Enabling a big
> dependency resolution framework should be optional.
>
> Right now Aether suffers from the same needy networking that Maven has. It
> wants to check artifacts frequently for changes. While this can be a good
> thing, it is not always an operation a project should have to do.
>
> --M
>
>
> On 11/02/2011 09:26 AM, Chiaming Hsu wrote:
>
>>
>> If this becomes part of the core of buildr as Peter suggested, would
>> there be performance impact when not using transitive dependencies?
>>
>> I have large projects using buildr (migrated from Maven), and I did
>> strictly white listing without any use of transitive dependencies. Buildr
>> runs at least twice faster then Maven to build the same large project after
>> migration and generates WAR artifacts about half of the size of Maven. I
>> believe using white listing of dependencies without transitive plays a key
>> role in the performance / compactness I saw. I don't want to lose this key
>> benefit of using buildr.
>>
>> In a sense, I would like to see transitive dependencies being optional
>> (as it is in buildr now) and avoid any performance impact for projects not
>> using transitive dependencies, if we brought in more "Maven stuff" into
>> core buildr library.
>>
>> Cheers,
>> Chiaming Hsu
>>
>>
>>
>> ______________________________**__
>> From: Peter Donald<pe...@realityforge.org>
>> To: dev@buildr.apache.org
>> Sent: Tuesday, November 1, 2011 8:40 PM
>> Subject: Re: Experiences with transitive dependencies in buildr
>>
>> Hi,
>>
>> On Sat, Oct 29, 2011 at 5:43 AM, Michael Guymon
>> <mi...@gmail.com> wrote:
>>
>>> The integration with buildr is crude and for some reason the rdoc is no
>>> longer formated correct. I will update it to make it legible again.
>>>
>>> https://github.com/mguymon/**buildr-resolver<https://github.com/mguymon/buildr-resolver>
>>>
>> nice.
>>
>> This is the ruby wrapper for the Aether java libs, which buildr-resolver
>>> depends on
>>>
>>> https://github.com/mguymon/**naether<https://github.com/mguymon/naether>
>>>
>> That is quite neat. I wonder if the core of buildr could move across
>> to using (n)Aether and if there is much benefit from that? Last time I
>> looked the project was still relatively volatile. What did you think
>> of working with the library?
>>
>> The one advantage I see is that it would be using the same core as
>> maven and thus guaranteed to be compatible (where as now we know there
>> is scenarios where we are not quite right).
>>
>>
>>
>>
>
Re: Experiences with transitive dependencies in buildr
Posted by Michael Guymon <mi...@gmail.com>.
I could not agree more, Buildr should stay lean and mean. Enabling a big
dependency resolution framework should be optional.
Right now Aether suffers from the same needy networking that Maven has.
It wants to check artifacts frequently for changes. While this can be a
good thing, it is not always an operation a project should have to do.
--M
On 11/02/2011 09:26 AM, Chiaming Hsu wrote:
>
> If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
>
> I have large projects using buildr (migrated from Maven), and I did strictly white listing without any use of transitive dependencies. Buildr runs at least twice faster then Maven to build the same large project after migration and generates WAR artifacts about half of the size of Maven. I believe using white listing of dependencies without transitive plays a key role in the performance / compactness I saw. I don't want to lose this key benefit of using buildr.
>
> In a sense, I would like to see transitive dependencies being optional (as it is in buildr now) and avoid any performance impact for projects not using transitive dependencies, if we brought in more "Maven stuff" into core buildr library.
>
> Cheers,
> Chiaming Hsu
>
>
>
> ________________________________
> From: Peter Donald<pe...@realityforge.org>
> To: dev@buildr.apache.org
> Sent: Tuesday, November 1, 2011 8:40 PM
> Subject: Re: Experiences with transitive dependencies in buildr
>
> Hi,
>
> On Sat, Oct 29, 2011 at 5:43 AM, Michael Guymon
> <mi...@gmail.com> wrote:
>> The integration with buildr is crude and for some reason the rdoc is no
>> longer formated correct. I will update it to make it legible again.
>>
>> https://github.com/mguymon/buildr-resolver
> nice.
>
>> This is the ruby wrapper for the Aether java libs, which buildr-resolver
>> depends on
>>
>> https://github.com/mguymon/naether
> That is quite neat. I wonder if the core of buildr could move across
> to using (n)Aether and if there is much benefit from that? Last time I
> looked the project was still relatively volatile. What did you think
> of working with the library?
>
> The one advantage I see is that it would be using the same core as
> maven and thus guaranteed to be compatible (where as now we know there
> is scenarios where we are not quite right).
>
>
>
Re: Experiences with transitive dependencies in buildr
Posted by Chiaming Hsu <ca...@yahoo.com>.
If this becomes part of the core of buildr as Peter suggested, would there be performance impact when not using transitive dependencies?
I have large projects using buildr (migrated from Maven), and I did strictly white listing without any use of transitive dependencies. Buildr runs at least twice faster then Maven to build the same large project after migration and generates WAR artifacts about half of the size of Maven. I believe using white listing of dependencies without transitive plays a key role in the performance / compactness I saw. I don't want to lose this key benefit of using buildr.
In a sense, I would like to see transitive dependencies being optional (as it is in buildr now) and avoid any performance impact for projects not using transitive dependencies, if we brought in more "Maven stuff" into core buildr library.
Cheers,
Chiaming Hsu
________________________________
From: Peter Donald <pe...@realityforge.org>
To: dev@buildr.apache.org
Sent: Tuesday, November 1, 2011 8:40 PM
Subject: Re: Experiences with transitive dependencies in buildr
Hi,
On Sat, Oct 29, 2011 at 5:43 AM, Michael Guymon
<mi...@gmail.com> wrote:
> The integration with buildr is crude and for some reason the rdoc is no
> longer formated correct. I will update it to make it legible again.
>
> https://github.com/mguymon/buildr-resolver
nice.
> This is the ruby wrapper for the Aether java libs, which buildr-resolver
> depends on
>
> https://github.com/mguymon/naether
That is quite neat. I wonder if the core of buildr could move across
to using (n)Aether and if there is much benefit from that? Last time I
looked the project was still relatively volatile. What did you think
of working with the library?
The one advantage I see is that it would be using the same core as
maven and thus guaranteed to be compatible (where as now we know there
is scenarios where we are not quite right).
--
Cheers,
Peter Donald