Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199071

Fix gradle deprecation warnings

XMLWordPrintable

        When compiling JavaFX using gradle 4.3 we get a few deprecation warnings for features that will be removed in 5.0. At some point we will likely want to move to gradle 5, so these should be addressed before then.

        Here is the list of warnings:

        A problem was found with the configuration of task ':buildSrc:generateGrammarSource'. Registering invalid inputs and outputs via TaskInputs and TaskOutputs methods has been deprecated and is scheduled to be removed in Gradle 5.0.

        Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
                at build_61v2cahy4344a9o4ddauip62l.commonModuleSetup(/localhome/kcr/javafx/jfx-kcr/jfx/rt/build.gradle:867)

        The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
                at build_61v2cahy4344a9o4ddauip62l$_run_closure16.doCall(/localhome/kcr/javafx/jfx-kcr/jfx/rt/build.gradle:2076)

        The Task.dependsOnTaskDidWork() method has been deprecated and is scheduled to be removed in Gradle 5.0. Instead, check the value of "didWork()" for each task, or declare the task inputs and outputs and let Gradle decide what needs to be run.
        at build_61v2cahy4344a9o4ddauip62l$_run_closure43$_closure353$_closure356.doCall(/localhome/kcr/javafx/jfx-kcr/jfx/rt/build.gradle:4199)

              kcr Kevin Rushforth
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: