-
Notifications
You must be signed in to change notification settings - Fork 21
Introduce getProductDependenciesTransformers
to ConjureProductDependenciesExtension
to help unblock configuration cache
#1657
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
Open
FinlayRJW
wants to merge
11
commits into
develop
Choose a base branch
from
finlayw/fix-minimum-version-issue
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Generate changelog in
|
CRogers
reviewed
Jul 3, 2025
...e-api/src/main/java/com/palantir/gradle/conjure/api/ConjureProductDependenciesExtension.java
Outdated
Show resolved
Hide resolved
getProductDependenciesTransformers
to ConjureProductDependenciesExtension
to help unblock configuration cache
FinlayRJW
commented
Jul 4, 2025
- code: "java.annotation.removed" | ||
old: "method void com.palantir.gradle.conjure.api.ConjureProductDependenciesExtension::<init>(org.gradle.api.Project)" | ||
new: "method void com.palantir.gradle.conjure.api.ConjureProductDependenciesExtension::<init>()" | ||
justification: "ConjureProductDependenciesExtension has been modernised to use\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a good enough justification? should I do a separate one for each break?
FinlayRJW
commented
Jul 4, 2025
...njure/src/test/java/com/palantir/gradle/conjure/ConjureProductDependenciesExtensionTest.java
Outdated
Show resolved
Hide resolved
…ir/gradle-conjure into finlayw/fix-minimum-version-issue
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.
Before this PR
Previously there was no mechanism for other plugins to safely modify the
ConjureProductDependenciesExtension.getProductDependencies
this resulted in other plugins just modifying the state ofgetProductDependencies
on the extension directly. This used to work from dumb luck but now we are rolling configuration cache out theconvertDependencies
method is called before other plugins have a change to modify the stateAfter this PR
Fundamentally this is meant to be a light touch PR we want to unblock configuration cache without having to do a massive re-write of
gradle-conjure
at some point we will be force to comeback and make a lot of changes but for now I'm trying to keep it minimalIf we where to build this from the ground up we should have used the
NamedDomainContainer
but this forces you to change the was you setserviceDependencies
in yourbuild.gradle
so instead we settled on adding agetProductDependenciesTransformers
method on the extension that allows other plugins to add methods that modify theServiceDependency
as late as possible==COMMIT_MSG==
==COMMIT_MSG==
Possible downsides?
I couldn't figure out how to get a test working in the
IntegrationSpec
so I've added a small java test for the extension this can be a FLUP if it is criticalThis does introduce a few breaks!
getProductDependencies
andgetEndpointVersions
are nowSetProperties
ConjureProductDependenciesExtension
is abstractThis should not be much of a problem we only seriously use this extension in one internal plugin -> https://pl.ntr/2v9 a PR to fix this there will follow soon