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

Remove Gradle deprecation warnings #13864

Closed
marcusdacoregio opened this issue Sep 25, 2023 · 1 comment
Closed

Remove Gradle deprecation warnings #13864

marcusdacoregio opened this issue Sep 25, 2023 · 1 comment
Assignees
Labels
in: build An issue in the build type: task A general task

Comments

@marcusdacoregio
Copy link
Contributor

Running ./gradlew build --warning-mode all gives us the output below. We should remove those deprecations warnings by applying the suggested upgrade to allow a smooth migration to newest versions of Gradle.

Gradle Enterprise plugin 3.12.3 has been deprecated. Starting with Gradle 9.0, only Gradle Enterprise plugin 3.13.1 or newer is supported. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#unsupported_ge_plugin_3.13
The BuildIdentifier.getName() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Use getBuildPath() to get a unique identifier for the build. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#build_identifier_name_and_current_deprecation

> Configure project :buildSrc
Calling configuration method 'attributes(Action)' is deprecated for configuration 'apolloMetadata', which has permitted usage(s):
        Declarable - this configuration can have dependencies added to it
This method is only meant to be called on configurations which allow the (non-deprecated) usage(s): 'Consumable, Resolvable'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#deprecated_configuration_usage
Build file '/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/buildSrc/build.gradle': line 8
The org.gradle.api.plugins.JavaPluginConvention 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/8.3/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_3qfsjj7pyzyz71l63kjqkbxv5.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/buildSrc/build.gradle:8)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/buildSrc/build.gradle': line 8
The org.gradle.api.plugins.Convention 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/8.3/userguide/upgrading_version_8.html#deprecated_access_to_conventions
        at build_3qfsjj7pyzyz71l63kjqkbxv5.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/buildSrc/build.gradle:8)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
The Project.getConvention() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#deprecated_access_to_conventions
The org.gradle.api.plugins.Convention 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/8.3/userguide/upgrading_version_8.html#deprecated_access_to_conventions
The org.gradle.api.plugins.JavaPluginConvention 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/8.3/userguide/upgrading_version_8.html#java_convention_deprecation
The ProjectComponentSelector.getBuildName() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Use getBuildPath() to get a unique identifier for the build. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#build_identifier_name_and_current_deprecation

> Configure project :
The org.gradle.util.ConfigureUtil 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/8.3/userguide/upgrading_version_8.html#org_gradle_util_reports_deprecations
        at build_2k5ogzxn36czna25r6zisar70.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/build.gradle:20)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-config
The resolvable usage is already allowed on configuration ':spring-security-config:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_config_64b3bs2bz883nhh5332kh9eu2.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/config/spring-security-config.gradle:5)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-core
Build file '/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/core/spring-security-core.gradle': line 39
The WriteProperties.outputFile property has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the destinationFile property instead. For more information, please refer to https://docs.gradle.org/8.3/dsl/org.gradle.api.tasks.WriteProperties.html#org.gradle.api.tasks.WriteProperties:outputFile in the Gradle documentation.
        at spring_security_core_14g9ia5l9tdocx2jozjjslysq$_run_closure2.doCall(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/core/spring-security-core.gradle:39)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at spring_security_core_14g9ia5l9tdocx2jozjjslysq.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/core/spring-security-core.gradle:38)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-context
The resolvable usage is already allowed on configuration ':spring-security-itest-context:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_context_5qqcli1xmwgcktvffv0sn0ugd.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/context/spring-security-itest-context.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-ldap-embedded-apacheds-default
The resolvable usage is already allowed on configuration ':spring-security-itest-ldap-embedded-apacheds-default:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_ldap_emb_e0nb6zbuaq7k8he678yl5sor3.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/ldap/embedded-ldap-apacheds-default/spring-security-itest-ldap-embedded-apacheds-default.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-ldap-embedded-mode-apacheds
The resolvable usage is already allowed on configuration ':spring-security-itest-ldap-embedded-mode-apacheds:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_ldap_emb_6shw9sqc1n0jx8lhtj08jo4ez.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/ldap/embedded-ldap-mode-apacheds/spring-security-itest-ldap-embedded-mode-apacheds.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-ldap-embedded-mode-unboundid
The resolvable usage is already allowed on configuration ':spring-security-itest-ldap-embedded-mode-unboundid:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_ldap_emb_e132nyy797eaemsy035adi8hf.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/ldap/embedded-ldap-mode-unboundid/spring-security-itest-ldap-embedded-mode-unboundid.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-ldap-embedded-none
The resolvable usage is already allowed on configuration ':spring-security-itest-ldap-embedded-none:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_ldap_emb_aigk1rp9cls7zn1tjk55uwcea.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/ldap/embedded-ldap-none/spring-security-itest-ldap-embedded-none.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-ldap-embedded-unboundid-default
The resolvable usage is already allowed on configuration ':spring-security-itest-ldap-embedded-unboundid-default:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_ldap_emb_cf7dw7s47m66k30qtmkl9xfwn.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/ldap/embedded-ldap-unboundid-default/spring-security-itest-ldap-embedded-unboundid-default.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-itest-web
The resolvable usage is already allowed on configuration ':spring-security-itest-web:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_itest_web_etfwh2aa7132mpuboyaqx250y.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/itest/web/spring-security-itest-web.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Configure project :spring-security-ldap
The resolvable usage is already allowed on configuration ':spring-security-ldap:integrationTestCompileClasspath'. This behavior has been deprecated. This behavior is scheduled to be removed in Gradle 9.0. Remove the call to setCanBeResolved(true), it has no effect. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_8.html#redundant_configuration_usage_activation
        at spring_security_ldap_38jb60r47b0j4q6nvq7ofkd88.run(/Users/mhertdacoreg/workdir/spring-projects/spring-security/main/ldap/spring-security-ldap.gradle:1)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
@marcusdacoregio marcusdacoregio added in: build An issue in the build type: enhancement A general enhancement labels Sep 25, 2023
@marcusdacoregio marcusdacoregio self-assigned this Sep 25, 2023
marcusdacoregio added a commit that referenced this issue Nov 6, 2023
Stop using JavaPluginConvention type and replace outputFile with destinationFile

Issue gh-13864
@marcusdacoregio
Copy link
Contributor Author

marcusdacoregio commented Nov 6, 2023

Closing as most of the deprecation warnings have been fixed, the remaining ones are from plugins outside Spring Security control. Individual tasks should be opened for each of them.

@marcusdacoregio marcusdacoregio added type: task A general task and removed type: enhancement A general enhancement labels Nov 6, 2023
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 type: task A general task
Projects
Status: No status
Development

No branches or pull requests

1 participant