I also voted for this jira.
The single line usePlugin('java') should really be enough to build a stand alone project. The jira contains a comment stating that the version can be inferred from the running JDK/JRE, this seems to make sense. But maybe we should stick to either 1.5 if JDK running is 1.5+ or 1.4 otherwise. For version, the default could be either the empty string or something like "0.1" or "0.0.1". Something like "unknown", so that the generated artifact would be projectname-unknown.jar.
Bernard.

Russel Winder wrote:
I voted for it.

This is such a small thing but for people starting on the "Use Gradle"
road it will be an irritant.
On Fri, 2009-02-27 at 09:31 +0100, Tom Eyckmans wrote:
There is a JIRA to provide good defaults for the sourceCompatibility
and targetCompatibility of the Java
Plugin: http://jira.codehaus.org/browse/GRADLE-340

2009/2/26 szczepiq <[email protected]>
        I don't mind specifying it explicitly :). However, it might be
        cool to
        have single 'javaCompatibility' field that would be used for
        both
        target and source. Most projects use the same value for target
        &
        source anyway.
Cheers,
        Szczepan
On Thu, Feb 26, 2009 at 6:59 PM, Levi Hoogenberg
        <[email protected]> wrote:
        > Or 1.6 - it's mature enough, right? (Not saying you should
        expect that, just
        > that if Gradle would default these values, I'd like to see
        them 1.6, not
        > 1.5.)
        >
        > On Thu, Feb 26, 2009 at 6:37 PM, Russel Winder
        > <[email protected]> wrote:
        >>
        >> It seems that the Java plugin no longer defines default
        values for
        >> sourceCompatibility and targetCompatibility.  Thus the
        Gradle file:
        >>
        >>        usePlugin 'java'
        >>        defaultTasks 'compile'
        >>
        >> leads to:
        >>
        >> Execution failed for task ':compile'.
        >> Cause: The sourceCompatibility and targetCompatibility must
        be set!
        >>
        >> which is a bit annoying.  I had assumed the default
        compatibility would
        >> be 1.5.
        >> --
        >> Russel.
        >> ====================================================
        >> Dr Russel Winder                 Partner
        >>
        >> Concertant LLP                   t: +44 20 7585 2200, +44
        20 7193 9203
        >> 41 Buckmaster Road,              f: +44 8700 516 084
        >> London SW11 1EN, UK.             m: +44 7770 465 077
        >
        >
---------------------------------------------------------------------
        To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email

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

   http://xircles.codehaus.org/manage_email


Reply via email to