Skip to content

Conversation

@kusaeva
Copy link
Contributor

@kusaeva kusaeva commented Nov 26, 2025

This PR adds support for Scalac compiler plugins (e.g., better-monadic-for) with automatic path resolution.

@jastice
Copy link
Member

jastice commented Jan 11, 2026

issue link: BAZEL-2666 Add support for scala compiler plugins

@noxvost noxvost requested a review from aehlig January 12, 2026 13:46
Copy link
Member

@aehlig aehlig left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

if JavaInfo in plugin:
jars = getattr(plugin[JavaInfo], "full_compile_jars", depset()).to_list()
for f in map(file_location, jars):
result.append("-Xplugin:%s/%s" % (f.root_execution_path_fragment, f.relative_path))
Copy link

Choose a reason for hiding this comment

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

Will this %s/%s work on Windows? E.g. does Bazel transforms path separators in command line by itself, or it is up to external code to provide proper separators?

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.

4 participants