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 for partial compile failing for external optional Dependency #385

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

rbygrave
Copy link
Contributor

In the tests this dependency is org.example.myapp.config.SomeOptionalDep. It gets added to autoRequires and in a full compile. For a partial compile this isn't restored from metadata and partial compile fails complaining that the dependency is not provided.

This fix is to mark this dependency as a soft: dependency. Partial compile reads the soft: dependency from metadata.

An alternative would be to add a mechanism (extra metadata annotation to save and restore the autoRequires types.

In the tests this dependency is org.example.myapp.config.SomeOptionalDep. It gets added to autoRequires and in a full compile. For a partial compile this isn't restored from metadata and partial compile fails complaining that the dependency is not provided.

This fix is to mark this dependency as a soft: dependency. Partial compile reads the soft: dependency from metadata.

An alternative would be to add a mechanism (extra metadata annotation to save and restore the autoRequires types.
@sonatype-lift
Copy link

sonatype-lift bot commented Jul 27, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@rbygrave rbygrave self-assigned this Jul 27, 2023
@rbygrave rbygrave added the bug Something isn't working label Jul 27, 2023
@rbygrave rbygrave added this to the 9.5 milestone Jul 27, 2023
@rbygrave rbygrave merged commit e5ff444 into master Jul 27, 2023
4 checks passed
@rbygrave rbygrave deleted the feature/fix-external-optional branch July 27, 2023 12:21
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.

1 participant