| `GRADLE_IMAGE`| The Docker image used to run Gradle <br/>:warning: **set the version required by your project** | `registry.hub.docker.com/library/gradle:latest` |
| `GRADLE_CLI_OPTS`| Additional Gradle options used on the command line | `None` |
| `GRADLE_CLI_BIN`| The location of the gradle binary. If you prefer using a [gradle wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) you should override this (for e.g. `gradlew`) | `gradle` |
| `GRADLE_USER_HOME`| The gradle user home | `$CI_PROJECT_DIR/.gradle` |
| `GRADLE_DAEMON`| Whether to use or not gradle daemon | `false` |
| `image` / `GRADLE_IMAGE` | The Docker image used to run Gradle <br/>:warning: **set the version required by your project** | `registry.hub.docker.com/library/gradle:latest` |
| `cli-opts` / `GRADLE_CLI_OPTS` | Additional Gradle options used on the command line | `None` |
| `cli-bin` / `GRADLE_CLI_BIN` | The location of the gradle binary. If you prefer using a [gradle wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) you should override this (for e.g. `gradlew`) | `gradle` |
| `user-home` / `GRADLE_USER_HOME` | The gradle user home | `$CI_PROJECT_DIR/.gradle` |
| `daemon` / `GRADLE_DAEMON` | Whether to use or not gradle daemon | `false` |
| `GRADLE_SBOM_DISABLED` | Set to `true` to disable this job | _none_ |
| `GRADLE_SBOM_VERSION` | Version of the `cyclonedx-gradle-plugin` used for SBOM analysis<br/>_When unset, the latest version will be used_ | _none_ |
| `sbom-disabled` / `GRADLE_SBOM_DISABLED` | Set to `true` to disable this job | _none_ |
| `sbom-version` / `GRADLE_SBOM_VERSION` | Version of the `cyclonedx-gradle-plugin` used for SBOM analysis<br/>_When unset, the latest version will be used_ | _none_ |
This job injects cyclonedx plugin in your project. This can be disabled by defining the plugin in your `build.gradle` and setting `$GRADLE_SBOM_VERSION` variable to `disabled`.
@@ -265,11 +288,11 @@ Currently the pipeline exposes two __manual__ jobs of publication:
Both jobs use the following variables
| Name | Description | Default value |
| Input / Variable | Description | Default value |
| `GRADLE_PUBLISH_VERSION`| The value is propagated as gradle properties named `version`. It should be used in your publish task | `${CI_COMMIT_REF_SLUG}-SNAPSHOT` |
| `GRADLE_PUBLISH_ARGS`| The publish task that is invoked | `publish` |
| `GRADLE_NO_PUBLISH`| Set this variable if you wish to disable publish phase | `None` |
| `publish-version` / `GRADLE_PUBLISH_VERSION` | The value is propagated as gradle properties named `version`. It should be used in your publish task | `${CI_COMMIT_REF_SLUG}-SNAPSHOT` |
| `publish-args` / `GRADLE_PUBLISH_ARGS` | The publish task that is invoked | `publish` |
| `no-publish` / `GRADLE_NO_PUBLISH` | Set this variable if you wish to disable publish phase | `None` |
If you keep default value for `GRADLE_PUBLISH_VERSION`, it will have the following values