Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
This repository was archived by the owner on May 23, 2025. It is now read-only.

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

Description

@sgowroji

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

Platform: MacOS

Logs:

ERROR: �[0m/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: �[0m/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: �[0mBuild did NOT complete successfully
Error: The command exited with status 1�[0m
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions