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

gradle -PBUILD_SDK_FOR_TEST=false fails with gradle 7.6

XMLWordPrintable

    • b08

      To reproduce, run the following using gradle 7.6 RC3:

      $ gradle sdk
      $ gradle --info -PBUILD_SDK_FOR_TEST=false test

      <==-----------> 15% CONFIGURING [3s]> IDLE
      FAILURE: Build failed with an exception.

      * Where:
      Build file 'C:\Users\kcr\javafx\jfx-kcr\jfx\rt\build.gradle' line: 615

      * What went wrong:
      A problem occurred evaluating root project 'rt'.
      > No signature of method: org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.useFilter() is applicable for argument types: (build_32ube911nql8mvr8torfp363j$_run_closure1) values: [build_32ube911nql8mvr8torfp363j$_run_closure1@1679a7fe]


      By way of background, setting the gradle "-PBUILD_SDK_FOR_TEST=false" flag can be used when running tests to avoid a complete build of the sdk. This flag is only partially effective, since building and running the tests unconditionally depend on the shims, which in turn depend on the module classes, even when "BUILD_SDK_FOR_TEST" is false. It does speed up the build somewhat in that it won't rebuild any of the native code

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

              Created:
              Updated:
              Resolved: