-
Bug
-
Resolution: Fixed
-
P3
-
jfx20
-
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
$ 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
- blocks
-
JDK-8297067 Update Gradle to 7.6.0
- Resolved
-
JDK-8297071 Provide gradle "TEST_ONLY" flag to completely suppress building the sdk and shims
- Resolved
- relates to
-
JDK-8166662 Gradle test takes more time when skipping sdk
- Resolved