Geb core 3.2与groovy 2.5.8冲突

Geb core 3.2与groovy 2.5.8冲突,groovy,geb,Groovy,Geb,我尝试使用最后一个Groovy2.5.8和GEBCore3.2 例如 这是产生错误的原因 C:\PROJ\bitb\checkBoard\test>groovy runTest.groovy org.codehaus.groovy.control.multipleCompationerErrorSexception: 启动失败:转换期间出现常规错误:模块冲突 版本。模块[GroovyXML在版本2.5.8中加载,您可以 正在尝试加载版本2.5.6 如果我将geb核心更改为2.3.1,它工作得很好

我尝试使用最后一个Groovy2.5.8和GEBCore3.2

例如

这是产生错误的原因

C:\PROJ\bitb\checkBoard\test>groovy runTest.groovy org.codehaus.groovy.control.multipleCompationerErrorSexception: 启动失败:转换期间出现常规错误:模块冲突 版本。模块[GroovyXML在版本2.5.8中加载,您可以 正在尝试加载版本2.5.6

如果我将geb核心更改为2.3.1,它工作得很好。也许我应该更改一些配置


提前感谢!

Geb依赖于Groovy,但在运行脚本时已经加载了Groovy-您需要获取排除Groovy模块:

@Grapes([
        @Grab("org.gebish:geb-core:3.2"),
        @Grab("org.seleniumhq.selenium:selenium-firefox-driver:3.141.59"),
        @Grab("org.seleniumhq.selenium:selenium-support:3.141.59"),
        @GrabExclude("org.codehaus.groovy:groovy-all")
])

Geb依赖于Groovy,但在运行脚本时已经加载了Groovy-您需要获取排除Groovy模块:

@Grapes([
        @Grab("org.gebish:geb-core:3.2"),
        @Grab("org.seleniumhq.selenium:selenium-firefox-driver:3.141.59"),
        @Grab("org.seleniumhq.selenium:selenium-support:3.141.59"),
        @GrabExclude("org.codehaus.groovy:groovy-all")
])