Skip to content

Make scala_xxx rules declare that they provide JavaInfo #1643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

crt-31
Copy link
Contributor

@crt-31 crt-31 commented Nov 8, 2024

Description

Made most scala_xxxx rules declare that they provide JavaInfo (setting the "provides" attribute).
This allows these targets to be visited by aspects that use "required_providers=[JavaInfo]".

This matches behavior in java_xxx rules, and goal was to address all the equivelant scala_xxx rules.

rules updated are: scala_import, scala_library, scala_binary, scala_test, scala_junit_test, scala_proto, and scala_repl. (scala_proto_library was already correct).

Motivation

Allows scala_xxx rules to be visited by aspects that use "required_providers=[JavaInfo]"

Copy link

google-cla bot commented Nov 8, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

- Made scala_xxx rules declare they provide JavaInfo by setting the provides attribute.
- This allows aspects to visit them when the aspect uses required_providers.
- This matches functionality of java_xxx rules
@crt-31 crt-31 force-pushed the add_provides_javainfo branch from 909cd41 to 5f8d225 Compare November 8, 2024 20:54
@mbland
Copy link
Contributor

mbland commented Nov 8, 2024

Looks like you need to run bazel run //tools:lint_fix. Got me on my first few PRs, too.

Copy link
Collaborator

@simuons simuons left a comment

Choose a reason for hiding this comment

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

Thanks, @crt-31.

@liucijus liucijus merged commit f5c1cfd into bazel-contrib:master Nov 11, 2024
2 checks passed
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