Skip to content
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

Mixed Java + Kotlin kt_jvm_tests throw exception #414

Closed
jeffzoch opened this issue Dec 3, 2020 · 2 comments · Fixed by #513
Closed

Mixed Java + Kotlin kt_jvm_tests throw exception #414

jeffzoch opened this issue Dec 3, 2020 · 2 comments · Fixed by #513
Assignees

Comments

@jeffzoch
Copy link
Contributor

jeffzoch commented Dec 3, 2020

kt_jvm_test has to declare 'JavaConfiguration' as a required fragment in target configuration in order to access it. is thrown when kt_jvm_test is used with both kotlin and java test files. This is on the latest commit with experimental_use_abi_jars = True. Setting it to false seems to work

@restingbull restingbull self-assigned this Dec 28, 2020
@restingbull
Copy link
Collaborator

Provide a sample build file?

@jongerrish -- I'm thinking you might have fixed this already?

@jongerrish
Copy link
Contributor

No, I didn't come across this, but it looks like kt_jvm_test is just missing

    fragments = ["java"],  # Required fragments of the target configuration
    host_fragments = ["java"],  # Required fragments of the host configuration

from the rule declaration.

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 a pull request may close this issue.

3 participants