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

Add validation at publication time #10769

Merged
merged 1 commit into from
Sep 18, 2019
Merged

Add validation at publication time #10769

merged 1 commit into from
Sep 18, 2019

Conversation

melix
Copy link
Contributor

@melix melix commented Sep 18, 2019

Context

This commit introduces validation when generating Gradle
Module Metadata:

  • check that there's at least one variant published
  • each variant must have at least one attribute
  • there shouldn't be duplicate variant names
  • each variant must have a different (attributes,capabilities)
    combination

Closes #10736

@melix melix added this to the 6.0 RC1 milestone Sep 18, 2019
@melix melix self-assigned this Sep 18, 2019
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.

Nice work. This is a very valuable addition to Gradle Module Metadata by default.

I just have remarks regarding the consistency in wording/formatting of the error messages-

This commit introduces validation when generating Gradle
Module Metadata:

- check that there's at least one variant published
- each variant must have at least one attribute
- there shouldn't be duplicate variant names
- each variant must have a different (attributes,capabilities)
combination

Closes #10736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent publication of module with same variant name or equivalent variants
2 participants