Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit d8615cc

Browse files
authored
Document configuration to publish to scans.gradle.com
Fixes #870
1 parent 444c20b commit d8615cc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,3 +778,14 @@ The `init-script` supports a number of additional configuration parameters that
778778
| GRADLE_ENTERPRISE_PLUGIN_VERSION | :white_check_mark: | the version of the [Gradle Enterprise Gradle plugin](https://docs.gradle.com/enterprise/gradle-plugin/) to apply |
779779
| GRADLE_ENTERPRISE_CCUD_PLUGIN_VERSION | | the version of the [Common Custom User Data Gradle plugin](https://github.com/gradle/common-custom-user-data-gradle-plugin) to apply, if any |
780780
| GRADLE_ENTERPRISE_PLUGIN_REPOSITORY_URL | | the URL of the repository to use when resolving the GE and CCUD plugins; the Gradle Plugin Portal is used by default |
781+
782+
## Publishing to scans.gradle.com
783+
784+
Gradle Enterprise injection is designed to enable publishing of build scans to a Gradle Enterprise instance,
785+
and is not suitable for publishing to the public Build Scans instance (https://scans.gradle.com).
786+
787+
In order to publish Build Scans to scans.gradle.com, you need to:
788+
- Apply the Gradle Enterprise plugin to your build configuration ([see docs](https://docs.gradle.com/enterprise/get-started/#applying_the_plugin))
789+
- Programmatically accept the Terms of Service for scans.gradle.com ([see docs](https://docs.gradle.com/enterprise/gradle-plugin/#connecting_to_scans_gradle_com))
790+
- Execute the build with `--scan` or configure your build with `publishAlways()` ([see docs](https://docs.gradle.com/enterprise/get-started/#always_publishing_a_build_scan))
791+

0 commit comments

Comments
 (0)