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 binary compatibility checks #521

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Conversation

melix
Copy link
Contributor

@melix melix commented Mar 2, 2023

When standardized project names are in used, binary compatibility checks fail because the micronaut- prefix is added to the artifact id, resulting in a double micronaut-micronaut- prefix. This commit fixes that, but by doing so, it also introduces another bug which is related to Gradle preventing the resolution of a library which corresponds to the current project, in a different version.

In order to workaround this bug, we use the root project detached configurations, which isn't great, because it reaches out to another project's state.

Fixes the error seen at micronaut-projects/micronaut-security#1240 (comment)

When standardized project names are in used, binary compatibility checks
fail because the `micronaut-` prefix is added to the artifact id, resulting
in a double `micronaut-micronaut-` prefix. This commit fixes that, but by
doing so, it also introduces another bug which is related to Gradle preventing
the resolution of a library which corresponds to the current project, in a
different version.

In order to workaround this bug, we use the root project detached configurations,
which isn't great, because it reaches out to another project's state.
@melix melix added the bug Something isn't working label Mar 2, 2023
@melix melix added this to the 6.3.1 milestone Mar 2, 2023
@melix melix requested a review from sdelamo March 2, 2023 18:53
@melix melix self-assigned this Mar 2, 2023
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

What do you think if we do #522 ?

@melix melix merged commit a957c1d into master Mar 3, 2023
@melix melix deleted the cc/fix-binarycompat-resolution branch March 3, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants