java - org.gradle.api.GradleScriptException in Gradle while building -


i not able build gradle project in osx , getting below error due org.gradle.api.gradlescriptexception.

java.lang.nosuchmethoderror: org.gradle.api.artifacts.configuration.defaultdependencies(lorg/gradle/api/action;)lorg/gradle/api/artifacts/configuration; 

project building earlier , have not changed recently. system has homebrew gradle 2.2.1 installed.

build.gadle

apply plugin: 'java'  buildscript { repositories {           jcenter()         mavencentral()         maven {             url 'http://artifactory.xxxxtech.net/artifactory/libs-release'         }     } dependencies {         classpath 'com.xxxxx.tap.trap:gradle-plugin:1.0.0-rc-20161012063525'     } }  apply plugin: 'trap'  trap {     sut project.name     url = 'http://elasticsearch.tap.xxxx.xxxxtech.org'     owner = 'afw'     framework = 'junit'     environment = 'ci'     timezone = 'cet' }  task unittrapsend(type: com.xxxxx.tap.trap.trapsend) {     input = "testresults/"     category 'unit' }  finalizedby unittrapsend 

error

concurs-macbook-pro-9:mochatrap navanithh$ gradle build --stacktrace  failure: build failed exception.  * where: build file '/users/navanithh/documents/mochatrap/build.gradle' line: 16  * went wrong: problem occurred evaluating root project 'mochatrap'. > org.gradle.api.artifacts.configuration.defaultdependencies(lorg/gradle/api/action;)lorg/gradle/api/artifacts/configuration;  * try: run --info or --debug option more log output.  * exception is: org.gradle.api.gradlescriptexception: problem occurred evaluating root project 'mochatrap'.     @ org.gradle.groovy.scripts.internal.defaultscriptrunnerfactory$scriptrunnerimpl.run(defaultscriptrunnerfactory.java:54)     @ org.gradle.configuration.defaultscriptpluginfactory$scriptpluginimpl.apply(defaultscriptpluginfactory.java:148)     @ org.gradle.configuration.project.buildscriptprocessor.execute(buildscriptprocessor.java:39)     @ org.gradle.configuration.project.buildscriptprocessor.execute(buildscriptprocessor.java:26)     @ org.gradle.configuration.project.configureactionsprojectevaluator.evaluate(configureactionsprojectevaluator.java:34)     @ org.gradle.configuration.project.lifecycleprojectevaluator.evaluate(lifecycleprojectevaluator.java:59)     @ org.gradle.api.internal.project.abstractproject.evaluate(abstractproject.java:504)     @ org.gradle.api.internal.project.abstractproject.evaluate(abstractproject.java:83)     @ org.gradle.execution.taskpathprojectevaluator.configurehierarchy(taskpathprojectevaluator.java:42)     @ org.gradle.configuration.defaultbuildconfigurer.configure(defaultbuildconfigurer.java:35)     @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:129)     @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:106)     @ org.gradle.initialization.defaultgradlelauncher.run(defaultgradlelauncher.java:86)     @ org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcontroller.run(inprocessbuildactionexecuter.java:80)     @ org.gradle.launcher.cli.executebuildaction.run(executebuildaction.java:33)     @ org.gradle.launcher.cli.executebuildaction.run(executebuildaction.java:24)     @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:36)     @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:26)     @ org.gradle.launcher.cli.runbuildaction.run(runbuildaction.java:51)     @ org.gradle.internal.actions$runnableactionadapter.execute(actions.java:171)     @ org.gradle.launcher.cli.commandlineactionfactory$parseandbuildaction.execute(commandlineactionfactory.java:237)     @ org.gradle.launcher.cli.commandlineactionfactory$parseandbuildaction.execute(commandlineactionfactory.java:210)     @ org.gradle.launcher.cli.javaruntimevalidationaction.execute(javaruntimevalidationaction.java:35)     @ org.gradle.launcher.cli.javaruntimevalidationaction.execute(javaruntimevalidationaction.java:24)     @ org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute(commandlineactionfactory.java:206)     @ org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute(commandlineactionfactory.java:169)     @ org.gradle.launcher.cli.exceptionreportingaction.execute(exceptionreportingaction.java:33)     @ org.gradle.launcher.cli.exceptionreportingaction.execute(exceptionreportingaction.java:22)     @ org.gradle.launcher.main.doaction(main.java:33)     @ org.gradle.launcher.bootstrap.entrypoint.run(entrypoint.java:45)     @ org.gradle.launcher.bootstrap.processbootstrap.runnoexit(processbootstrap.java:54)     @ org.gradle.launcher.bootstrap.processbootstrap.run(processbootstrap.java:35)     @ org.gradle.launcher.gradlemain.main(gradlemain.java:23) caused by: java.lang.nosuchmethoderror: org.gradle.api.artifacts.configuration.defaultdependencies(lorg/gradle/api/action;)lorg/gradle/api/artifacts/configuration;     @ com.concur.tap.trap.trapplugin.apply(trapplugin.java:21)     @ com.concur.tap.trap.trapplugin.apply(trapplugin.java:11)     @ org.gradle.api.internal.plugins.defaultplugincontainer.provideplugin(defaultplugincontainer.java:188)     @ org.gradle.api.internal.plugins.defaultplugincontainer.addplugininternal(defaultplugincontainer.java:137)     @ org.gradle.api.internal.plugins.defaultplugincontainer.apply(defaultplugincontainer.java:103)     @ org.gradle.api.internal.plugins.defaultobjectconfigurationaction.applyplugin(defaultobjectconfigurationaction.java:115)     @ org.gradle.api.internal.plugins.defaultobjectconfigurationaction.access$200(defaultobjectconfigurationaction.java:36)     @ org.gradle.api.internal.plugins.defaultobjectconfigurationaction$3.run(defaultobjectconfigurationaction.java:80)     @ org.gradle.api.internal.plugins.defaultobjectconfigurationaction.execute(defaultobjectconfigurationaction.java:131)     @ org.gradle.api.internal.project.abstractpluginaware.apply(abstractpluginaware.java:37)     @ org.gradle.api.project$apply$0.call(unknown source)     @ org.gradle.api.internal.project.projectscript.apply(projectscript.groovy:34)     @ org.gradle.api.script$apply$0.callcurrent(unknown source)     @ build_dx9dpjw5aj1pgm28nq8ovanex.run(/users/navanithh/documents/mochatrap/build.gradle:16)     @ org.gradle.groovy.scripts.internal.defaultscriptrunnerfactory$scriptrunnerimpl.run(defaultscriptrunnerfactory.java:52)     ... 32 more   build failed  total time: 1.795 secs 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -