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

Misleading warning about "Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0" #160

Open
PhilWakelin opened this issue Oct 10, 2024 · 1 comment

Comments

@PhilWakelin
Copy link
Member

Using v1.0.6 of the cics-bundle-gradle plugin with a Gradle v7.6 build of a CICS bundle I get the following:


> Task :buildCICSBundle
Adding Java-based bundle parts from 'cicsBundlePart' dependency configuration
Adding Java-based bundle part: 'C:\Users\PhilWakelin\GitHub\cics-java-liberty-restapp\build\libs\cics-java-liberty-restapp.war'
Adding non-Java-based bundle parts from 'src/main/bundleParts'

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1s
5 actionable tasks: 5 executed

This is the output of: gradle clean build --warning-mode all which only complains about Gradle 9 not Gradle 8.


> Task :buildCICSBundle
The org.gradle.util.VersionNumber 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
Adding Java-based bundle parts from 'cicsBundlePart' dependency configuration
Adding Java-based bundle part: 'C:\Users\PhilWakelin\GitHub\cics-java-liberty-restapp\build\libs\cics-java-liberty-restapp.war'
Adding non-Java-based bundle parts from 'src/main/bundleParts'

BUILD SUCCESSFUL in 1s
5 actionable tasks: 5 executed

Setup is:
Kotlin: 1.7.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 1.8.0_391 (IBM Corporation 2.9)
OS: Windows 11 10.0 amd64

This is the sample build file in use https://github.com/cicsdev/cics-java-liberty-restapp/blob/main/build.gradle

@ind1go
Copy link
Member

ind1go commented Oct 10, 2024

I don't think there's a lot we can do about this one. The VersionNumber class was due to be removed in Gradle 8, but the removal was then moved forward to Gradle 9. So basically, at the version of Gradle you're using (7.6), Gradle fully believes that it will be removed in the next version. But move to Gradle 8 and you'll find it still supported.

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

No branches or pull requests

2 participants