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

Remove enforcedPlatform from test fixtures #1881

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

bondolo
Copy link
Contributor

@bondolo bondolo commented Oct 11, 2021

Motivation:
In #1827 enforcedPlatform was used for importing several BOM files
related to tests. For the modules which publish artifacts to be used by
other modules the use of enforcedPlatform is incorrect and Maven
Java publish tasks fail.
Modifications:
All testFixtures imports of BOM files use platform rather than
enforcedPlatform. For dependencies for test execution
enforcedPlatform is still appropriate and continues to be used.
Result:
Maven publish tasks succeed.

Motivation:
In apple#1827 `enforcedPlatform` was used for importing several BOM files
related to tests. For the modules which publish artifacts to be used by
other modules the use of `enforcedPlatform` is incorrect and Maven
Java publish tasks fail.
Modifications:
All `testFixtures` imports of BOM files use `platform` rather than
`enforcedPlatform`. For dependencies for test execution
`enforcedPlatform` is still appropriate and continues to be used.
Result:
Maven publish tasks succeed.
@bondolo bondolo self-assigned this Oct 11, 2021
@bondolo bondolo added the bug Something isn't working label Oct 11, 2021
@bondolo bondolo requested review from tkountis and chemicL October 11, 2021 23:31
@bondolo
Copy link
Contributor Author

bondolo commented Oct 11, 2021

Tested using publishMavenJavaPublicationToMavenLocal task with before/after to ensure that fix is correct.

@bondolo
Copy link
Contributor Author

bondolo commented Oct 11, 2021

Test failure due to #1579

@bondolo bondolo merged commit 5aa5ee9 into apple:main Oct 12, 2021
@bondolo bondolo deleted the textFixtures-enforcedPlatform branch October 12, 2021 20:44
bondolo added a commit that referenced this pull request Oct 13, 2021
Motivation:
In #1827 `enforcedPlatform` was used for importing several BOM files
related to tests. For the modules which publish artifacts to be used by
other modules the use of `enforcedPlatform` is incorrect and Maven
Java publish tasks fail.
Modifications:
All `testFixtures` imports of BOM files use `platform` rather than
`enforcedPlatform`. For dependencies for test execution
`enforcedPlatform` is still appropriate and continues to be used.
Result:
Maven publish tasks succeed.
@bondolo
Copy link
Contributor Author

bondolo commented Oct 13, 2021

0.41 - ebf2d8d

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.

3 participants