-
Notifications
You must be signed in to change notification settings - Fork 25.5k
[Gradle] Avoid usage of archives configuration #133526
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
This will be deprecated in later Gradle versions
Pinging @elastic/es-delivery (Team:Delivery) |
} | ||
} | ||
|
||
['archives:windows-zip', |
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.
We don't use it and its basically just some rewiring of configurations adding nothing but clutter to the build that can be avoided.
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.
Pull Request Overview
This PR modernizes the Gradle build configuration by replacing the deprecated archives
configuration with the standard assemble
task dependency pattern. This change prepares the codebase for future Gradle versions where the archives
configuration will be removed.
- Replaces
artifacts { archives taskName }
withtasks.named('assemble').configure { dependsOn taskName }
- Removes legacy configuration setup for distribution subprojects
- Maintains the same build behavior while using the recommended Gradle approach
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
x-pack/rest-resources-zip/build.gradle | Updates restResourcesZip task to use assemble dependency instead of archives configuration |
x-pack/plugin/security/build.gradle | Updates jar task publishing to use assemble dependency instead of archives configuration |
x-pack/plugin/ml/build.gradle | Updates jar task publishing to use assemble dependency instead of archives configuration |
distribution/build.gradle | Removes legacy archives configuration setup for distribution subprojects |
Comments suppressed due to low confidence (2)
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
// normal es plugins do not publish the jar but we need to since users need it for extensions | ||
archives tasks.named("jar") | ||
|
||
tasks.named('assemble').configure { |
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.
buildReleaseArtifacts relies on the assemble task. archives has been deprecated. see gradle/gradle#34001
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.
LGTM
* [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
* [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
* [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
* [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
* [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
…tic#133568) * [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
…tic#133568) * [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
This will be deprecated in later Gradle versions