d10xa / gradle-allure-plugin

Gradle plugin generating Allure report from test results
Apache License 2.0
23 stars 2 forks source link

unable to generate report using gradle #5

Closed reachkrishnaraj closed 7 years ago

reachkrishnaraj commented 8 years ago

I get the following error. Any solution is appreciated.

My config: buildscript { repositories { jcenter() } dependencies { classpath "ru.d10xa:gradle-allure-plugin:0.5.1" } }

apply plugin: 'ru.d10xa.allure'

allure { aspectjweaver = true testNG = true

allureVersion = "1.4.0"
aspectjVersion = "1.8.0"

}

Error:

Caused by: java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.DefaultGroovyMethods.each(Ljava/util/Set;Lgroovy/lang/Closure;)Ljava/util/Set; at ru.d10xa.allure.AllurePlugin.applyAspectjweaver(AllurePlugin.groovy:66) at ru.d10xa.allure.AllurePlugin.access$2(AllurePlugin.groovy) at ru.d10xa.allure.AllurePlugin$_apply_closure1.doCall(AllurePlugin.groovy:26) at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40) at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25) at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83) ... 43 more

d10xa commented 8 years ago

@reachkrishnaraj You need to update gradle version

reachkrishnaraj commented 8 years ago

Thanks @d10xa Andrey. I will try that and update this thread.