Skip to content

Fix Gradle Deprecation Warnings #10446

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

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

larsgrefer
Copy link
Contributor

@larsgrefer larsgrefer commented Oct 27, 2021

This fixes the deprecation warnings emitted by Gradle 7.2:

enableFeaturePreview('VERSION_ORDERING_V2') has been deprecated. This is scheduled to be removed in Gradle 8.0. The feature flag is no longer relevant, please remove it from your settings file. See https://docs.gradle.org/7.2/userguide/feature_lifecycle.html#feature_preview for more details.
        at settings_dfhlxatnqhe7e8c2fo902wxnx.run(/Users/larsgrefer/git/spring-projects/spring-security/settings.gradle:13)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :buildSrc
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_2oqrf2tvjxex1kq4ulionehg0$_run_closure1.doCall(/Users/larsgrefer/git/spring-projects/spring-security/buildSrc/build.gradle:12)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-acl
The RepositoryHandler.jcenter(Action<MavenArtifactRepository>) method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral(Action<MavenArtifactRepository> instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.2/userguide/upgrading_version_6.html#jcenter_deprecation
        at spring_security_acl_l5qa57wyb10vbea3v27lro5o.run(/Users/larsgrefer/git/spring-projects/spring-security/acl/spring-security-acl.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-docs
The AbstractArchiveTask.classifier property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveClassifier property instead. See https://docs.gradle.org/7.2/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:classifier for more details.
        at spring_security_docs_eaofagogpzk25sj6rr36s6lyk.run(/Users/larsgrefer/git/spring-projects/spring-security/docs/spring-security-docs.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 27, 2021
@eleftherias eleftherias self-assigned this Oct 28, 2021
@eleftherias eleftherias added in: build An issue in the build type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 28, 2021
@eleftherias eleftherias removed their assignment Nov 18, 2021
@marcusdacoregio marcusdacoregio self-assigned this Nov 18, 2021
Copy link
Contributor

@marcusdacoregio marcusdacoregio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @larsgrefer, nice work!

Could you please separate the work done by removing jcenter() to a separate commit?

@marcusdacoregio marcusdacoregio added the status: waiting-for-feedback We need additional information before we can continue label Nov 19, 2021
@marcusdacoregio marcusdacoregio added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Nov 22, 2021
@marcusdacoregio marcusdacoregio merged commit 0541341 into spring-projects:main Nov 22, 2021
@marcusdacoregio
Copy link
Contributor

Thanks @larsgrefer. This is now merged into main.

@marcusdacoregio marcusdacoregio added this to the 5.7.0-M1 milestone Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build An issue in the build status: feedback-provided Feedback has been provided type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants