You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Gradle.md
+48-15
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,47 @@ There are currently five experiments for Gradle. You could also perform these ex
8
8
9
9
## Requirements
10
10
11
-
You need to have [Bash](https://www.gnu.org/software/bash/) installed in order to run the build validation scripts.
11
+
You must have the following tooling in order to use the Develocity Build Validation Scripts:
12
12
13
-
If you plan to use the build validation scripts on Windows, then you will need to [install Windows Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl/install). The build validation scripts work well on the WSL default distribution (Ubuntu). Note how to deal with the eventuality of facing filename too long errors [here](#dealing-with-filename-too-long-errors-on-windows).
13
+
-[Develocity](https://gradle.com/develocity/)
14
+
-[Bash](https://www.gnu.org/software/bash/)
15
+
16
+
For users running on Windows, you will need to [install Windows Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl/install).
17
+
The scripts work well on the WSL default distribution (Ubuntu).
18
+
Note how to deal with the eventuality of facing filename too long errors [here](#dealing-with-filename-too-long-errors-on-windows).
19
+
20
+
### User permissions
21
+
22
+
Experiment builds running locally require different permissions granted to the Develocity user running the build than compared to builds that run in CI.
23
+
Note that not all permissions are required, but they're still strongly recommended for the best possible experience.
24
+
25
+
Your Develocity user should be granted the following permissions:
| Publish build scans | Analyzing the experiment results relies on build scans published to Develocity. | Yes |
30
+
| Read build cache data | Required only for experiments that involve remote build cache reads. | Only for experiment 5 |
31
+
| View build scans and build data | Build scans can be used to perform a deeper analysis of the experiment results. | No |
32
+
| Access build data via the API | Used to retrieve the summarized experiment results.</br></br>See [Authenticating with Develocity][#authenticating-with-develocity] for more details. | No |
33
+
34
+
> [!IMPORTANT]
35
+
> Your Develocity user must be granted one of 'View build scans and build data' or 'Access build data via the API'.
36
+
> If you have neither, you will have no way to view the experiment results.
37
+
38
+
For experiment builds that are run in CI, the Develocity user used in CI should be granted the following permissions:
| Publish build scans | Analyzing the experiment results relies on build scans published to Develocity. | Yes |
43
+
| Read and write build cache data | Writing to the remote build cache. | Yes |
44
+
| Access build data via the API | Used to retrieve the summarized experiment results.</br></br>See [Authenticating with Develocity][#authenticating-with-develocity] for more details. | Only when using `--fail-if-not-fully-cacheable`|
45
+
46
+
### Common Custom User Data Gradle plugin
47
+
48
+
To get the most out of the experiments and also when building with Develocity during daily development, it is highly recommended that you apply the [Common Custom User Data Gradle plugin](https://github.com/gradle/common-custom-user-data-gradle-plugin) to your build.
49
+
This free, open-source plugin enhances build scans with additional tags, links, and custom values that are considered during the experiments.
50
+
51
+
You can find a complete example of how to apply the Common Custom User Data Gradle plugin to your build [here](https://github.com/gradle/develocity-build-config-samples/tree/main/common-develocity-gradle-configuration-groovy/settings.gradle) for Groovy DSL and [here](https://github.com/gradle/develocity-build-config-samples/blob/main/common-develocity-gradle-configuration-kotlin/settings.gradle.kts) for Kotlin DSL.
14
52
15
53
## Compatibility
16
54
@@ -86,13 +124,14 @@ is invoked, as shown in the example below.
86
124
87
125
The scripts return with an exit code that depends on the outcome of running a given experiment.
## Applying the Common Custom User Data Gradle plugin
107
-
108
-
To get the most out of the experiments and also when building with Develocity during daily development, it is highly recommended that you apply the [Common Custom User Data Gradle plugin](https://github.com/gradle/common-custom-user-data-gradle-plugin) to your build. This free, open-source plugin enhances build scans with additional tags, links, and custom values that are considered during the experiments.
109
-
110
-
You can find a complete example of how to apply the Common Custom User Data Gradle plugin to your build [here](https://github.com/gradle/develocity-build-config-samples/tree/main/common-develocity-gradle-configuration-groovy/settings.gradle) for Groovy DSL and [here](https://github.com/gradle/develocity-build-config-samples/blob/main/common-develocity-gradle-configuration-kotlin/settings.gradle.kts) for Kotlin DSL.
111
-
112
145
## Authenticating with Develocity
113
146
114
147
Some scripts fetch data from build scans that were published as part of running an experiment. The build scan data is fetched by leveraging the [Develocity API](https://docs.gradle.com/develocity/api-manual/). It is not strictly necessary that you have permission to call these APIs to execute a script successfully, but the summary provided once the script has finished running its experiment will be more comprehensive if the build scan data is accessible.
Copy file name to clipboardExpand all lines: Maven.md
+40-8
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,47 @@ There are currently four experiments for Maven. You could also perform these exp
8
8
9
9
## Requirements
10
10
11
-
You need to have [Bash](https://www.gnu.org/software/bash/) installed in order to run the build validation scripts.
11
+
You must have the following tooling in order to use the Develocity Build Validation Scripts:
12
12
13
-
If you plan to use the build validation scripts on Windows, then you will need to [install Windows Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl/install). The build validation scripts work well on the WSL default distribution (Ubuntu). Note how to deal with the eventuality of facing filename too long errors [here](#dealing-with-filename-too-long-errors-on-windows).
13
+
-[Develocity](https://gradle.com/develocity/)
14
+
-[Bash](https://www.gnu.org/software/bash/)
15
+
16
+
For users running on Windows, you will need to [install Windows Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl/install).
17
+
The scripts work well on the WSL default distribution (Ubuntu).
18
+
Note how to deal with the eventuality of facing filename too long errors [here](#dealing-with-filename-too-long-errors-on-windows).
19
+
20
+
### User permissions
21
+
22
+
Experiment builds running locally require different permissions granted to the Develocity user running the build than compared to builds that run in CI.
23
+
Note that not all permissions are required, but they're still strongly recommended for the best possible experience.
24
+
25
+
Your Develocity user should be granted the following permissions:
| Publish build scans | Analyzing the experiment results relies on build scans published to Develocity. | Yes |
30
+
| Read build cache data | Required only for experiments that involve remote build cache reads. | Only for experiment 4 |
31
+
| View build scans and build data | Build scans can be used to perform a deeper analysis of the experiment results. | No |
32
+
| Access build data via the API | Used to retrieve the summarized experiment results.</br></br>See [Authenticating with Develocity][#authenticating-with-develocity] for more details. | No |
33
+
34
+
> [!IMPORTANT]
35
+
> Your Develocity user must be granted one of 'View build scans and build data' or 'Access build data via the API'.
36
+
> If you have neither, you will have no way to view the experiment results.
37
+
38
+
For experiment builds that are run in CI, the Develocity user used in CI should be granted the following permissions:
| Publish build scans | Analyzing the experiment results relies on build scans published to Develocity. | Yes |
43
+
| Read and write build cache data | Writing to the remote build cache. | Yes |
44
+
| Access build data via the API | Used to retrieve the summarized experiment results.</br></br>See [Authenticating with Develocity][#authenticating-with-develocity] for more details. | Only when using `--fail-if-not-fully-cacheable`|
45
+
46
+
### Common Custom User Data Gradle plugin
47
+
48
+
To get the most out of the experiments and also when building with Develocity during daily development, it is highly recommended that you apply the [Common Custom User Data Maven extension](https://github.com/gradle/common-custom-user-data-maven-extension) to your build.
49
+
This free, open-source plugin enhances build scans with additional tags, links, and custom values that are considered during the experiments.
50
+
51
+
You can find a complete example of how to apply the Common Custom User Data Maven extension to your build [here](https://github.com/gradle/develocity-build-config-samples/blob/main/common-develocity-maven-configuration/.mvn/extensions.xml).
14
52
15
53
## Compatibility
16
54
@@ -101,12 +139,6 @@ the local builds to publish their build scans to a Develocity server reachable a
## Applying the Common Custom User Data Maven extension
105
-
106
-
To get the most out of the experiments and also when building with Develocity during daily development, it is highly recommended that you apply the [Common Custom User Data Maven extension](https://github.com/gradle/common-custom-user-data-maven-extension) to your build. This free, open-source plugin enhances build scans with additional tags, links, and custom values that are considered during the experiments.
107
-
108
-
You can find a complete example of how to apply the Common Custom User Data Maven extension to your build [here](https://github.com/gradle/develocity-build-config-samples/blob/main/common-develocity-maven-configuration/.mvn/extensions.xml).
109
-
110
142
## Authenticating with Develocity
111
143
112
144
Some scripts fetch data from build scans that were published as part of running an experiment. The build scan data is fetched by leveraging the [Develocity API](https://docs.gradle.com/develocity/api-manual/). It is not strictly necessary that you have permission to call these APIs to execute a script successfully, but the summary provided once the script has finished running its experiment will be more comprehensive if the build scan data is accessible.
0 commit comments