Skip to content

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

@PhilWakelin

Description

@PhilWakelin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions