java – Spock编译器插件无法运行,因为
作者:互联网
试图在这里完成教程:http://rwinch.blogspot.com/2011/03/running-spring-securitys-tutorial.html
已经下载了git://github.com/SpringSource/spring-security.git并在Spring Source ToolSuite中获得了很多项目.其中两个包含错误(spring-security-config和spring-security-samples-cassample)
Groovy:Unexpected problem with AST transform: The Spock compiler
plugin could not run because Spock 0.5.0-groovy-1.7 is not compatible
with Groovy 1.8.4. For more information, see
07001
它附加到该行的错误
package org.springframework.security.config.http
我对Groovy完全不熟悉.那么有可能暗示我做什么简单的事情来升级Spock 0.5.0-groovy-1.7莫名其妙?
解决方法:
通过添加命令行选项解决
-groovy.compiler.level 17
到STS的捷径.
根据这里:http://groovy.codehaus.org/Compiler+Switching+within+Groovy-Eclipse
标签:java,groovy,spring-security,spock,sts-springsourcetoolsuite 来源: https://codeday.me/bug/20190630/1335105.html