Discussion:
gradle use case I haven't seen an example for
Roger Studner
2012-04-26 15:15:03 UTC
Permalink
I have an ivy repo and use a sort of ugly/hackish ant file to pull things from maven central and then publish them to my own ivy repo

I'd like to do this with gradle, but have no idea where to start.. obviously I can pull down the dependencies/comppile etc etc with gradle.. i've just never tried to make a task to "pull something down and then publish it to another repo"

anyone :)?

Thanks,
Roger
Robert Fischer
2012-04-26 15:21:48 UTC
Permalink
Isn't this why a loving and benevolent God invented wget? Or is there
some inconsistency that I'm not aware of?

~~ Robert.
Post by Roger Studner
I have an ivy repo and use a sort of ugly/hackish ant file to pull things from maven central and then publish them to my own ivy repo
I'd like to do this with gradle, but have no idea where to start.. obviously I can pull down the dependencies/comppile etc etc with gradle.. i've just never tried to make a task to "pull something down and then publish it to another repo"
anyone :)?
Thanks,
Roger
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
Ken Sipe
2012-04-26 15:25:27 UTC
Permalink
Post by Robert Fischer
Isn't this why a loving and benevolent God invented wget?
+1 haha
Post by Robert Fischer
Or is there
some inconsistency that I'm not aware of?
~~ Robert.
Post by Roger Studner
I have an ivy repo and use a sort of ugly/hackish ant file to pull things from maven central and then publish them to my own ivy repo
I'd like to do this with gradle, but have no idea where to start.. obviously I can pull down the dependencies/comppile etc etc with gradle.. i've just never tried to make a task to "pull something down and then publish it to another repo"
anyone :)?
Thanks,
Roger
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Roger Studner
2012-04-26 18:49:24 UTC
Permalink
Well, the issue is making sure the proper artifacts & all depedencies are pulled down.. and then the correct ivys/*.xml files are created/pushed for each artifact.

wget (CURL!) is brilliant.. but doesn't solve the issue (even 1%) here.

Roger
Post by Robert Fischer
Isn't this why a loving and benevolent God invented wget? Or is there
some inconsistency that I'm not aware of?
~~ Robert.
Post by Roger Studner
I have an ivy repo and use a sort of ugly/hackish ant file to pull things from maven central and then publish them to my own ivy repo
I'd like to do this with gradle, but have no idea where to start.. obviously I can pull down the dependencies/comppile etc etc with gradle.. i've just never tried to make a task to "pull something down and then publish it to another repo"
anyone :)?
Thanks,
Roger
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Robert Fischer
2012-04-26 19:03:15 UTC
Permalink
Ah. Got it. So there is a distinction you're concerned about.

I'd think you could somehow pipe configurations.compile into
configurations.archives and then use the standard install provided by
the Maven plugin. Although that'll probably give you Pom files, which
aren't exactly Ivy files.

~~ Robert.
Post by Roger Studner
Well, the issue is making sure the proper artifacts & all depedencies are pulled down.. and then the correct ivys/*.xml files are created/pushed for each artifact.
wget (CURL!) is brilliant.. but doesn't solve the issue (even 1%) here.
Roger
Post by Robert Fischer
Isn't this why a loving and benevolent God invented wget? Or is there
some inconsistency that I'm not aware of?
~~ Robert.
Post by Roger Studner
I have an ivy repo and use a sort of ugly/hackish ant file to pull things from maven central and then publish them to my own ivy repo
I'd like to do this with gradle, but have no idea where to start.. obviously I can pull down the dependencies/comppile etc etc with gradle.. i've just never tried to make a task to "pull something down and then publish it to another repo"
anyone :)?
Thanks,
Roger
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
James Carr
2012-05-04 16:09:32 UTC
Permalink
I'd recommend just using Artifactory to mirror the repositories you
want. We use it at Carfax from both ant+ivy and gradle builds with
great success. There's no need to convert poms to ivy.xml files... ivy
has a m2compatible mode.

Thanks,
James


On Thu, Apr 26, 2012 at 2:03 PM, Robert Fischer
Post by Robert Fischer
Ah. Got it. So there is a distinction you're concerned about.
I'd think you could somehow pipe configurations.compile into
configurations.archives and then use the standard install provided by
the Maven plugin. Although that'll probably give you Pom files, which
aren't exactly Ivy files.
~~ Robert.
Post by Roger Studner
Well, the issue is making sure the proper artifacts & all depedencies are pulled down.. and then the correct ivys/*.xml files are created/pushed for each artifact.
wget (CURL!) is brilliant.. but doesn't solve the issue (even 1%) here.
Roger
Post by Robert Fischer
Isn't this why a loving and benevolent God invented wget? Or is there
some inconsistency that I'm not aware of?
~~ Robert.
Post by Roger Studner
I have an ivy repo and use a sort of ugly/hackish ant file to pull things from maven central and then publish them to my own ivy repo
I'd like to do this with gradle, but have no idea where to start.. obviously I can pull down the dependencies/comppile etc etc with gradle.. i've just never tried to make a task to "pull something down and then publish it to another repo"
anyone :)?
Thanks,
Roger
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
Loading...