Skip to content

Conversation

comius
Copy link
Contributor

@comius comius commented Nov 4, 2022

Pass jvm-abi-gen and kotlin-compiler with system property

This passes runfiles path returned from rootpath function, which is correct in setups with and without using bzlmod.

Use Dep.fromLabel in tests to find dependencies

The Dep.fromLabel works well in combination with kt_rules_test. The same
mangling and demangling is used to find runfiles.

This is a slight simplification, which as well prepares the repo for
bzlmod.

In addition workaround for autovalue is replaced with a filegroup trick,
which works with newer rules_jvm_external repository (where visibility
of .jar targets is limited).

@restingbull
Copy link
Collaborator

Please split the target refactorings from the bzlmod changes -- it'll be easier to keep track of what moves where.

@comius comius force-pushed the bzlmod branch 2 times, most recently from 9a9cf78 to be2e94b Compare December 5, 2022 13:01
@comius comius changed the title Initial version of bzlmod modules Pass runfiles paths more robustly Dec 5, 2022
This passes runfiles path returned from rootpath function, which is correct in setups with and without using bzlmod.
The Dep.fromLabel works well in combination with kt_rules_test. The same
mangling and demangling is used to find runfiles.

This is a slight simplification, whcih as well prepared the repo for
bzlmod.

In addition workaround for autovalue is replaced with a filegroup trick,
which works with newer rules_jvm_external repository (where visibility
of .jar targets is limited).
@comius
Copy link
Contributor Author

comius commented Dec 5, 2022

Please split the target refactorings from the bzlmod changes -- it'll be easier to keep track of what moves where.

I've split them into 2 commits. And will follow up with bzlmod changes.

@comius comius marked this pull request as ready for review December 5, 2022 13:10
@restingbull restingbull merged commit 16445ed into bazelbuild:master Dec 5, 2022
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