Update terms of use link

This commit is contained in:
Pavlo Shevchenko 2024-03-08 09:20:20 +01:00 committed by daz
parent c8026aaa7f
commit b7acb1efc8
No known key found for this signature in database
13 changed files with 16 additions and 19 deletions

View File

@ -5,7 +5,7 @@ plugins {
gradleEnterprise { gradleEnterprise {
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
uploadInBackground = false uploadInBackground = false

View File

@ -5,7 +5,7 @@ plugins {
gradleEnterprise { gradleEnterprise {
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
isUploadInBackground = false isUploadInBackground = false

View File

@ -3,7 +3,7 @@ plugins {
} }
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
} }

View File

@ -4,7 +4,7 @@ plugins {
gradleEnterprise { gradleEnterprise {
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
uploadInBackground = false uploadInBackground = false

View File

@ -4,7 +4,7 @@ plugins {
gradleEnterprise { gradleEnterprise {
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
uploadInBackground = false uploadInBackground = false

View File

@ -4,7 +4,7 @@ plugins {
gradleEnterprise { gradleEnterprise {
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
uploadInBackground = false uploadInBackground = false

View File

@ -83,7 +83,7 @@ jobs:
cache-read-only: false # For testing, allow writing cache entries on non-default branches cache-read-only: false # For testing, allow writing cache entries on non-default branches
gradle-version: ${{ matrix.gradle }} gradle-version: ${{ matrix.gradle }}
build-scan-publish: true build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" build-scan-terms-of-use-url: "https://gradle.com/legal/terms-of-use"
build-scan-terms-of-use-agree: "yes" build-scan-terms-of-use-agree: "yes"
- name: Run Gradle build - name: Run Gradle build
id: gradle id: gradle

View File

@ -97,14 +97,14 @@ offending dependency.
### Publishing a Develocity Build Scan® from your dependency submission workflow ### Publishing a Develocity Build Scan® from your dependency submission workflow
You can automatically publish a Build Scan on every run of `gradle/actions/dependency-submission`. Three input parameters are You can automatically publish a Build Scan on every run of `gradle/actions/dependency-submission`. Three input parameters are
required, one to enable publishing and two more to accept the [Develocity terms of use](https://gradle.com/terms-of-service). required, one to enable publishing and two more to accept the [Develocity terms of use](https://gradle.com/legal/terms-of-use).
```yaml ```yaml
- name: Generate and submit dependency graph - name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3 uses: gradle/actions/dependency-submission@v3
with: with:
build-scan-publish: true build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" build-scan-terms-of-use-url: "https://gradle.com/legal/terms-of-use"
build-scan-terms-of-use-agree: "yes" build-scan-terms-of-use-agree: "yes"
``` ```

View File

@ -41,7 +41,7 @@ inputs:
required: false required: false
default: false default: false
build-scan-terms-of-use-url: build-scan-terms-of-use-url:
description: The URL to the Build Scan® terms of use. This input must be set to 'https://gradle.com/terms-of-service'. description: The URL to the Build Scan® terms of use. This input must be set to 'https://gradle.com/legal/terms-of-use'.
required: false required: false
build-scan-terms-of-use-agree: build-scan-terms-of-use-agree:
description: Indicate that you agree to the Build Scan® terms of use. This input value must be "yes". description: Indicate that you agree to the Build Scan® terms of use. This input value must be "yes".

View File

@ -688,7 +688,7 @@ The `init-script` supports several additional configuration parameters that you
Develocity injection is designed to enable the publishing of build scans to a Develocity instance, Develocity injection is designed to enable the publishing of build scans to a Develocity instance,
but is also useful for publishing to the public Build Scans instance (https://scans.gradle.com). but is also useful for publishing to the public Build Scans instance (https://scans.gradle.com).
To publish to https://scans.gradle.com, you must specify in your workflow that you accept the [Gradle Terms of Use](https://gradle.com/terms-of-service). To publish to https://scans.gradle.com, you must specify in your workflow that you accept the [Gradle Terms of Use](https://gradle.com/legal/terms-of-use).
```yaml ```yaml
name: Run build and publish Build Scan name: Run build and publish Build Scan
@ -702,7 +702,7 @@ jobs:
uses: gradle/actions/setup-gradle@v3 uses: gradle/actions/setup-gradle@v3
with: with:
build-scan-publish: true build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" build-scan-terms-of-use-url: "https://gradle.com/legal/terms-of-use"
build-scan-terms-of-use-agree: "yes" build-scan-terms-of-use-agree: "yes"
- name: Run a Gradle build - a build scan will be published automatically - name: Run a Gradle build - a build scan will be published automatically

View File

@ -90,7 +90,7 @@ inputs:
default: false default: false
build-scan-terms-of-use-url: build-scan-terms-of-use-url:
description: The URL to the Build Scan® terms of use. This input must be set to 'https://gradle.com/terms-of-service'. description: The URL to the Build Scan® terms of use. This input must be set to 'https://gradle.com/legal/terms-of-use'.
required: false required: false
build-scan-terms-of-use-agree: build-scan-terms-of-use-agree:

View File

@ -1,9 +1,5 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import { import {getBuildScanPublishEnabled, getBuildScanTermsOfUseUrl, getBuildScanTermsOfUseAgree} from './input-params'
getBuildScanPublishEnabled,
getBuildScanTermsOfUseUrl,
getBuildScanTermsOfUseAgree
} from './input-params'
export function setup(): void { export function setup(): void {
if (getBuildScanPublishEnabled() && verifyTermsOfServiceAgreement()) { if (getBuildScanPublishEnabled() && verifyTermsOfServiceAgreement()) {
@ -18,6 +14,7 @@ export function setup(): void {
function verifyTermsOfServiceAgreement(): boolean { function verifyTermsOfServiceAgreement(): boolean {
if ( if (
getBuildScanTermsOfUseUrl() !== 'https://gradle.com/terms-of-service' || getBuildScanTermsOfUseUrl() !== 'https://gradle.com/terms-of-service' ||
getBuildScanTermsOfUseUrl() !== 'https://gradle.com/legal/terms-of-use' ||
getBuildScanTermsOfUseAgree() !== 'yes' getBuildScanTermsOfUseAgree() !== 'yes'
) { ) {
core.warning(`Terms of use must be agreed in order to publish build scans.`) core.warning(`Terms of use must be agreed in order to publish build scans.`)

View File

@ -5,7 +5,7 @@ plugins {
gradleEnterprise { gradleEnterprise {
buildScan { buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceUrl = "https://gradle.com/legal/terms-of-use"
termsOfServiceAgree = "yes" termsOfServiceAgree = "yes"
publishAlways() publishAlways()
uploadInBackground = false uploadInBackground = false