java - Can't run individual tests within Intellij gradle -
i attempting create project gradle, when run individual tests error.
information:26/10/16 11:22 - compilation completed 1 error , 0 warnings in 158ms error:gradle-resources-test:sunday-sessions_test: java.lang.nosuchmethoderror: org.gradle.api.specs.andspec.getspecsarray()[lorg/gradle/api/specs/spec;
i have tried refreshing gradle project , have done file->invalidate caches , restart, has not helped. here gradle file, can see why happening?
buildscript { repositories { jcenter() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "io.ratpack:ratpack-gradle:1.3.3" classpath "com.github.jengelman.gradle.plugins:shadow:1.2.3" } } ext { // drivers want use drivers = ["chrome", "phantomjs"] ext { gebversion = '0.13.1' seleniumversion = '2.52.0' chromedriverversion = '2.19' phantomjsversion = '1.9.7' } } apply plugin: "io.ratpack.ratpack-groovy" apply plugin: "com.github.johnrengelman.shadow" apply plugin: "idea" apply plugin: "eclipse" repositories { jcenter() } dependencies { // default slf4j binding. note blocking implementation. // see here non blocking appender http://logging.apache.org/log4j/2.x/manual/async.html runtime 'org.slf4j:slf4j-simple:1.7.12' // if using spock, need depend on geb-spock testcompile("org.gebish:geb-spock:$gebversion") { exclude group: 'org.codehaus.groovy' } testcompile("org.spockframework:spock-core:1.0-groovy-2.4") { exclude group: "org.codehaus.groovy" } // if using junit, need depend on geb-junit (3 or 4) testcompile("org.gebish:geb-junit4:$gebversion") { exclude group: "org.codehaus.groovy" } // http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.52.0' compile "org.shamdata:sham:0.3" // drivers testcompile "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumversion" // using custom version of phantomjs driver original 1 not support webdriver > 2.43.1 testcompile("com.codeborne:phantomjsdriver:1.2.1") { // phantomjs driver pulls in different selenium version transitive = false } testcompile('io.ratpack:ratpack-remote-test:1.3.0') { exclude group: "org.codehaus.groovy" } // http://mvnrepository.com/artifact/com.google.inject/guice compile group: 'com.google.inject', name: 'guice', version: '3.0' compile 'io.ratpack:ratpack-handlebars:1.2.0' compile 'com.fasterxml.jackson:jackson-parent:2.7-1' compile 'postgresql:postgresql:9.1-901-1.jdbc4' compile 'org.codehaus.groovy:groovy-all:2.4.4' testcompile ratpack.dependency('test') compile ratpack.dependency("remote") testcompile ratpack.dependency("remote-test") compile ratpack.dependency("hikari") // https://mvnrepository.com/artifact/com.restfb/restfb compile group: 'com.restfb', name: 'restfb', version: '1.26.0' //grab user location geoip2 compile 'com.maxmind.geoip2:geoip2:2.8.0-rc1' }
Comments
Post a Comment