Is it possible to inherit one task definition from another? What I want to do is create some test profiles, so I'd have default test -

test {

    include 'com/something/something/**'
    exclude 'com/something/else/**'

    maxParallelForks 5

    testLogging{
        exceptionFormat "full"
        showStackTraces = false
    }

    jvmArgs '-Xms128m', '-Xmx512m', '-XX:MaxPermSize=128m'
}

and some another test with overriden "include" or "maxParallelForks" part etc.

Is it possible without creating new Task class?

Edit
Report