i am facing the same error but my build file is somewhat looks like this. please help me out
apply plugin: ‘java’ version = ‘1.0’
repositories {
mavenCentral()
maven {
url “http://repo.springsource.org/release”
url “http://oss.sonatype.org/content/groups/public/”
} }
sourceCompatibility = 1.6 targetCompatibility = 1.6
configurations {
cucumberRuntime {
extendsFrom testRuntime
} }
task test(overwrite: true) {
dependsOn assemble, processTestResources, compileTestJava
doLast {
javaexec {
main = “org.junit.runner.JUnitCore”
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = [‘com.erecyclingcorps.test.’ + (System.properties[“spring.profiles.active”].tokenize("_")[0]).toUpperCase() + ‘Test’]
systemProperties System.properties
}
} } dependencies {
compile ‘org.seleniumhq.selenium:selenium-java:2.32.+’
compile ‘org.apache.commons:commons-lang3:3.1’
compile ‘org.springframework:spring-context:3.2.3.RELEASE’
testCompile ‘info.cukes:cucumber-java:1.1.3’
testCompile ‘info.cukes:cucumber-junit:1.1.3’
testCompile ‘info.cukes:cucumber-spring:1.1.3’
testCompile group: ‘junit’,name:‘junit’,version: ‘4.8+’
testCompile ‘org.easytesting:fest-assert-core:2.0+’
}