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

Prevent the default variants to be used as fallback #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vampire
Copy link

@Vampire Vampire commented Jan 22, 2024

Currently if you for example request Windows/x86, as no variant is configured for it, you get the default variants
with the empty jars. With this additional attribute change, you instead get an error that no matching variant is found.

@jjohannes what do you think?

@Vampire Vampire force-pushed the prevent-default-variants branch from 240060e to 8b21a89 Compare January 22, 2024 02:58
@Vampire
Copy link
Author

Vampire commented Jan 22, 2024

I've just seen this is also done in the LWJGL example in the Gradle docs: https://docs.gradle.org/current/userguide/component_metadata_rules.html#adding_variants_for_native_jars

Copy link
Contributor

@jjohannes jjohannes left a comment

Choose a reason for hiding this comment

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

I agree that this is a good addition.

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.

2 participants