bazelbuild / rules_groovy

Groovy rules for Bazel
Apache License 2.0
11 stars 28 forks source link

[Bazel CI] Groovyc command in rules_groovy fails with "Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7" with Bazel@HEAD #68

Open sgowroji opened 8 months ago

sgowroji commented 8 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3701#018e16aa-c47f-4884-8fc8-f7533591df20

Platform: MacOS

Logs:

ERROR: /Users/buildkite/builds/bk-imacpro-8/bazel-org-repo-root/rules_groovy/example/src/main/groovy/lib/BUILD:17:24: Groovyc example/src/main/groovy/lib/libgroovyjavalib-groovy.jar failed: (Exit 1): bash failed: error executing Groovyc command (from target //example/src/main/groovy/lib:groovyjavalib-groovy) 
Error: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
Error: Exception org.codehaus.groovy.GroovyBugError [in thread "main"]
ERROR: /Users/buildkite/builds/bk-imacpro-8/bazel-org-repo-root/rules_groovy/example/src/main/groovy/lib/BUILD:3:15: Groovyc example/src/main/groovy/lib/libgroovylib-impl.jar failed: (Exit 1): bash failed: error executing Groovyc command (from target //example/src/main/groovy/lib:groovylib-impl) 
Error: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
Error: Exception org.codehaus.groovy.GroovyBugError [in thread "main"]
ERROR: Build did NOT complete successfully
Error: The command exited with status 1
error: exit status 1

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_groovy
git reset 47adf9ba4d6a4ad5be29d0599436f68bc811bfad  --hard
export USE_BAZEL_VERSION=ee8e833bbb530e4a84e3b9c2f4a07b48c78fad85 
bazel build //...

CC Greenteam @comius

sgowroji commented 7 months ago

Hi @ekuefler, Can you take a look on the above fialures. Thanks!