On Sun, Mar 15, 2009 at 1:46 PM, Tom Eyckmans <[email protected]> wrote:
> Curtis,
>
> 2009/3/15 Curtis Cooley <[email protected]>
>>
>> Is there quickstart documentation somewhere. I'm really struggling
>> getting a butt simple project up and running with Gradle. All I want
>> is to simply create a lib directory and manually manage dependencies
>> for now. Is there documentation or a quickstart zip that gets one
>> quickly to:
>>
>>  * Java+Groovy compile
>>  * Junit testing
>>
>> This shouldn't be this hard.
>
> for the simplest project that follows the conventions:
>
> lib
> src/main/groovy
> src/main/resources
> src/test/groovy
> src/test/resources
>
> you would put the following in your build.gradle file
>
> usePlugin('groovy')
>
> dependencies {
>     addFlatDirResolver('lib', new File(rootDir,'lib'))
>
>     // declare your dependencies here
> }
>
> thats it now you have your lib dir set as source of your dependencies and a
> test task that executes junit tests.
>

Here's what I had to do to get it working. Does that look right?

usePlugin('groovy')
sourceCompatibility=6
targetCompatibility=6
dependencies {
    addFlatDirResolver('lib', new File(rootDir, 'lib'))
    clientModule(['groovy'], ":groovy:1.6.0") {
                dependency(":commons-cli:1.1")
                clientModule(":ant:1.7") {
                    dependencies(":ant-junit:1.7.0", ":ant-launcher:1.7.0")
                }
    }
    testCompile(['junit:junit:4'])
}

I got this far with mostly trial and error. It seems that this should
be documented in a groovy quick start or something like that.

If this is how a groovy quickstart might look, I can post this on the
wiki in the examples.

-- 
Curtis Cooley
[email protected]
===============
Once a programmer had a problem. He thought he could solve it with a
regular expression. Now he has two problems.

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

    http://xircles.codehaus.org/manage_email


Reply via email to