Getting the gradle wrapper

View: New views
3 Messages — Rating Filter:   Alert me  

Getting the gradle wrapper

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think I must just be missing it but where does one get the Gradle
Wrapper from in order to add it to a project?  I don't see a download on
the downloads page of just the wrapper for adding to an existing
project.

Thanks.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment

Re: Getting the gradle wrapper

by hdockter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 4, 2009, at 1:06 PM, Russel Winder wrote:

> I think I must just be missing it but where does one get the Gradle
> Wrapper from in order to add it to a project?  I don't see a  
> download on
> the downloads page of just the wrapper for adding to an existing
> project.

The buildmaster executes the gradle wrapper tasks which generates all  
the necessary artifacts. They are then submitted to VCS.

See: http://gradle.org/0.8/docs/userguide/gradle_wrapper.html

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Getting the gradle wrapper

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hans,

On Sun, 2009-10-04 at 17:12 +0200, Hans Dockter wrote:

> On Oct 4, 2009, at 1:06 PM, Russel Winder wrote:
>
> > I think I must just be missing it but where does one get the Gradle
> > Wrapper from in order to add it to a project?  I don't see a  
> > download on
> > the downloads page of just the wrapper for adding to an existing
> > project.
>
> The buildmaster executes the gradle wrapper tasks which generates all  
> the necessary artifacts. They are then submitted to VCS.
>
> See: http://gradle.org/0.8/docs/userguide/gradle_wrapper.html
OK, I had failed to understand what was going on.  Now not the case :-)

I wonder if it might be wise to have a page on the website about this.

I tried putting 0.9 in as the version just for the hell of it, ran
gradle and it did something.  However when I did the gradlew:

        Downloading http://dist.codehaus.org/gradle/gradle-0.9-bin.zip
       
        Exception in thread "main" java.io.FileNotFoundException: http://dist.codehaus.org/gradle/gradle-0.9-bin.zip
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1267)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:48)
        at org.gradle.wrapper.Download.download(Download.java:36)
        at org.gradle.wrapper.Install.createDist(Install.java:59)
        at org.gradle.wrapper.Wrapper.execute(Wrapper.java:45)
        at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:39)

Nothing wrong with the reaction since 0.9 has not been released.
However:

I wonder if the released Gradle should be able to check its wrapper
creation execution to ensure the requested version in possible so as to
get early failure?

Also I wonder if there is a need to issue a stack trace for this?

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment