Integrated: 8297071: Provide gradle "TEST_ONLY" flag to completely suppress building the sdk and shims

Ambarish Rapte arapte at openjdk.org
Mon May 8 09:26:25 UTC 2023


On Wed, 26 Apr 2023 17:08:50 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

> Add `TEST_ONLY` flag to gradle with default value as false.
> Add new task named `shims`, This task depends on all shim tasks from all projects. Hence it will build all shim classes.
> 
> If TEST_ONLY is set to true, the all non test tasks get disabled. When running a test task, this flag would reduce time in checking if all non test tasks are up to date.
> How to use:
> 1. Following command would fail in a clean repo, 
>   > gradle -PTEST_ONLY=true :base:test
> 2. The sdk and shims task must have been executed before running any test
>   > gradle sdk shims
>   > gradle -PTEST_ONLY=true :base:test
> 3. Setting this flag to true with non test task would result in no task being run.
>   > gradle -PTEST_ONLY=true sdk  -> It will not build sdk task
> 
> TIP: use `--dry-run` option of gradle for speeding up testing the effect of this PR.

This pull request has now been integrated.

Changeset: 27ee7e34
Author:    Ambarish Rapte <arapte at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/27ee7e34df7847e90f2aa4e326fd60715d74b7ac
Stats:     58 lines in 3 files changed: 42 ins; 1 del; 15 mod

8297071: Provide gradle "TEST_ONLY" flag to completely suppress building the sdk and shims

Reviewed-by: kcr, aghaisas

-------------

PR: https://git.openjdk.org/jfx/pull/1117


More information about the openjfx-dev mailing list