org.gradle.api.GradleScriptException

tip

Deactivate the "Create a tag for every build" option in the Git plugin.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Adding reportng dependency causes the following error: Could not resolve all dependencies for configuration ':compile'. > Artifact 'org.testng:testng:6.3.1:jdk15@jar' not found. The dependency is declared as: dependencies { compile "org.seleniumhq.selenium:selenium-java:2.15.0" compile "org.testng:testng:6.3.1" compile "org.uncommons:reportng:1.1.2" } If I change the declaration to the following: dependencies { compile "org.seleniumhq.selenium:selenium-java:2.15.0" compile "org.testng:testng:6.3.1" compile ("org.uncommons:reportng:1.1.2") { exclude group: "org.testng", module: "testng" } } I get the following exception: * Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'console-bg1'. at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54) (...) Caused by: java.lang.StackOverflowError at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:804) at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1096) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1049) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128) at org.gradle.api.tasks.testing.testng.TestNGOptions.methodMissing(TestNGOptions.groovy:204) Full exception attached. Have not found a solution nor a workaround to this issue.
    via by Lidia Marchioni,
    • org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'my-project'. at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)

    Users with the same issue

    Unknown visitor1 times, last one,
    poroszd
    6 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,