Apply legacy plugin last, and declare capabilities for old plugins#991
Merged
Goooler merged 6 commits intoGradleUp:mainfrom Oct 24, 2024
Merged
Conversation
The previous link worked but this is more correct
Goooler
approved these changes
Sep 29, 2024
build-logic/src/main/kotlin/shadow.convention.publish.gradle.kts
Outdated
Show resolved
Hide resolved
Member
|
CC @ljacomet |
ljacomet
approved these changes
Oct 24, 2024
Contributor
ljacomet
left a comment
There was a problem hiding this comment.
Sorry, I said I would attempt this and in the end did not find the time.
This LGTM!
The one thing I wondered was about the capability addition: should it be done in a patch release or in a minor?
My preference would be to do it in a minor as it might end up breaking builds (for good reasons) while the fix to the order of application fits perfectly a patch release.
Contributor
|
And thank you @jpenilla for taking care of fixing my mistake! |
Member
|
I'm planning to release this in 8.3.4, WDYT? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #964 using the solution suggested by @ljacomet at #964 (comment)
Tested to fix the issue (bring behavior back to how it was before 8.3.1/with the old plugin), and to give an error when both the current and old plugin are on the classpath.
Something else that came to mind regarding the legacy plugin is that if someone puts the new plugin on the classpath, but then applies the legacy plugin id, nothing will happen, which could be confusing. But resolving that is likely better addressed in a separate PR (if at all).