Skip to content

Conversation

@agluszak
Copy link
Contributor

Reorder runtime_deps to put @bazel_tools//tools/jdk:JacocoCoverage before the worker. This ensures the newer JaCoCo classes are loaded first, fixing the NoClassDefFoundError caused by version mismatch between rules_kotlin (JaCoCo 0.8.11) and rules_java 9.3.0+ (JaCoCo 0.8.14).

Also adds a coverage example to verify the fix.

Fixes #1447

Reorder runtime_deps to put @bazel_tools//tools/jdk:JacocoCoverage
before the worker. This ensures the newer JaCoCo classes are loaded
first, fixing the NoClassDefFoundError caused by version mismatch
between rules_kotlin (JaCoCo 0.8.11) and rules_java 9.3.0+ (JaCoCo 0.8.14).

Also adds a coverage example to verify the fix.
@@ -0,0 +1,36 @@
#!/bin/bash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing actually invokes this script to verify that coverage actually works, is that intentional?

).onFailThrow()
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just add coverage as a command to the integration test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[coverage] Incompatible with rules_java 9.3.0

3 participants