usePlugin('groovy')

sourceCompatibility=1.4

repositories {
    mavenCentral()
}

dependencies {
	groovy "org.codehaus.groovy:groovy-all:1.5.6"

	testCompile module('org.testng:testng:5.8') {
	    artifact {
	        name = 'testng'
	        type = 'jar'
	        extension = 'jar'
	        classifier = 'jdk14'
        }
	}
}

test {
   useTestNG().options.dumpCommand().suiteXmlBuilder().suite(name: 'testing-testng') {
        test (name : 'testing-testng', annotations : 'javadoc', verbose:'1') {
            classes {
                'class' (name: 'org.gradle.BadTest')
            }
        }
    } 
}
