JDK-8297071 : Provide gradle "TEST_ONLY" flag to completely suppress building the sdk and shims
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: build
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-11-15
  • Updated: 2023-09-07
  • Resolved: 2023-05-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx21 b17Fixed
Related Reports
Blocks :  
Blocks :  
Description
This is an enhancement to cleanly decouple the test task from the sdk when a flag is set.

* Define a new "TEST_ONLY" property (BUILD_SDK_FOR_TEST=false would set that property to true for backward compatibility)

* Create a new "testShims" task that builds the shims and dependsOn the sdk

* Change the "test" task to conditionally depend on "testShims" iff TEST_ONLY is false

After this change, the goal is that running "gradle -PTEST_ONLY=true test" would not rebuild any of the modules or shims classes nor native libraries.

Comments
Changeset: 27ee7e34 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2023-05-08 09:23:45 +0000 URL: https://git.openjdk.org/jfx/commit/27ee7e34df7847e90f2aa4e326fd60715d74b7ac
08-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1117 Date: 2023-04-26 17:08:50 +0000
27-04-2023