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

[BUG] Gradle task :wrapper fails with org.gradle.util.DistributionLocator deprecated #5494

Closed
DarshitChanpura opened this issue Dec 8, 2022 · 1 comment · Fixed by #6212
Assignees
Labels

Comments

@DarshitChanpura
Copy link
Member

NOT URGENT, but should be looked into at some point

Describe the bug
Wrapper task to update gradle version fails with The org.gradle.util.DistributionLocator type has been deprecated.

> Task :wrapper
The org.gradle.util.DistributionLocator type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/7.6/userguide/upgrading_version_7.html#org_gradle_util_reports_deprecations
        at build_4d0q822uef9ladyhg6p6yk3ft$_run_closure17$_closure85.doCall(.../OpenSearch/build.gradle:535)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Added checksum to wrapper properties
Updated minimum Gradle Version

FAILURE: Build failed with an exception.

* Where:
Build file '.../OpenSearch/build.gradle' line: 535

* What went wrong:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

To Reproduce
Run ./gradlew wrapper --gradle-version 7.6 --distribution-type all

Expected behavior
Task should be successful.

Host/Environment (please complete the following information):

@minalsha
Copy link
Contributor

minalsha commented Jan 9, 2023

This needs an upgraded Gradle verion 8. We are presently on 7.6 Gradle version which is the latest version as per https://gradle.org/releases/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants