Details
-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b17
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.
* 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.
Attachments
Issue Links
- blocks
-
JDK-8297072 Provide gradle option to test a previously built SDK
- Resolved
- is blocked by
-
JDK-8297042 gradle -PBUILD_SDK_FOR_TEST=false fails with gradle 7.6
- Resolved