Skip to content

Prevent the default variants to be used as fallback#163

Open
Vampire wants to merge 1 commit into
openjfx:masterfrom
Vampire:prevent-default-variants
Open

Prevent the default variants to be used as fallback#163
Vampire wants to merge 1 commit into
openjfx:masterfrom
Vampire:prevent-default-variants

Conversation

@Vampire
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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