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

Fix how the nexus repositories are added #218

Merged
merged 1 commit into from
Oct 27, 2021
Merged

Conversation

melix
Copy link
Contributor

@melix melix commented Oct 27, 2021

This commit fixes yet another ordering issue. The use of afterEvaluate on
any project to add configuration to the root project is doomed to fail in
some form. Here, it was possible that the configuration of a child module was
completed before the root project was. In this case, the Nexus repository
wouldn't be added, which leads to incomplete publications!

This commit fixes the problem by making sure that the repository is added
first. It also introduces a sanity check to make sure that if the plugin is
updated, it also comes with the application of the settings plugin.

This commit fixes yet another ordering issue. The use of `afterEvaluate` on
_any_ project to add configuration to the _root_ project is doomed to fail in
some form. Here, it was possible that the configuration of a child module was
completed before the root project was. In this case, the Nexus repository
wouldn't be added, which leads to incomplete publications!

This commit fixes the problem by making sure that the repository is added
first. It also introduces a sanity check to make sure that if the plugin is
updated, it also comes with the application of the settings plugin.
@melix melix added bug Something isn't working relates-to: build label for issues related to the build file or CI labels Oct 27, 2021
@melix melix self-assigned this Oct 27, 2021
@melix melix requested a review from ilopmar October 27, 2021 12:56
@melix
Copy link
Contributor Author

melix commented Oct 27, 2021

@ilopmar I leveraged this bugfix to introduce a check which would warn you if you forgot to apply the settings plugin

@melix melix merged commit f5bff6f into master Oct 27, 2021
@melix melix deleted the cc/fix-publishing-config branch October 27, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working relates-to: build label for issues related to the build file or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants