often when i'm trying to "slap gradle on some old code" I do things like this:

sourceSets {
    main {
        java {
            srcDir 'srv'
            exclude '**/uncompilable/**'
       }

       groovy {
           srcDir 'java'
       }
   }
}

then, when I see people/others scripts.. I see this (from a message just a minute ago):
configurations {
    zipFile
}

dependencies {
zipFile 'com.somewhere:zipfile:1.0@zip'
}

is there then a default:
configurations {
   main
}

(no, there is configurations compile)

The reason i'm asking.. is I have a project that has various folders like this:
unittest
integrationtest

etc.. and the intergration test "folder" which has that type of test.. .has some classpath things it seems (thus, a "configuration")..

but this is also, technically a "sourceSet" no?

I'm just trying to figure out how to have separate testing folders.. with separate classpath/dependencies.. just can't seem to find this "example" in a complete form..though I do realize the user guide has all the parts spread out in it

Any thoughts/examples would be great

Best,
Roger


Reply via email to