-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Replace Gradle's deprecated buildIdentifier.getName() with newer API #48522
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
Conversation
I think this if-statement should be updated:
Previously it was:
and I am not sure how the values of
Is it like this?
cc @aloubyansky |
This resolves #39221 as well. |
i've seen a few of these "xyz deprecated in version something of gradle" - is any of this changing the base version of gradle we say Quarkus work with? do we keep track of it so we don't surprise users with breaking things by surprise? |
b9ba83d
to
abbcfdd
Compare
This comment has been minimized.
This comment has been minimized.
I am not sure. The Gradle guide does not mention any minimum supported Gradle versions. |
No, the absolute build path means the path within a composite build. So the root build has name In general, the absolute build path is a unique identifier of an (included) build in a Gradle invocation, while the build name is not. |
So, is this implementation correct?
Alternatively, we can use (not sure if it is valid for all cases):
or
|
This might work some of the time. What I don't understand is why you try to obtain the instance of the included build in the first place. What is the code trying to achieve and can that be achieved on the dependency level alone without reaching into other configured projects or included builds. |
abbcfdd
to
9000916
Compare
The code existed before. I am just trying to replace deprecated methods that will be removed in the next release Gradle 9.0. |
Status for workflow
|
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.
Thanks a lot @Eng-Fouad!
@wolfs thanks for your advises here. For now, we need to be able to discover project sources for certain launch modes. If there is a better way of doing that, please let us know. Thanks! |
buildIdentifier.getName()
is deprecated since Gradle 8.2 and will be removed in the next release Gradle 9.0.