From 6137005ddb9d5f348ca13d35fe9fd4ba6f2998cf Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Tue, 6 Aug 2024 09:16:24 +0200 Subject: [PATCH] ci: Add gradle build scans to CI builds --- .github/workflows/gradle-check.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ settings.gradle | 12 ++++++++++++ 3 files changed, 20 insertions(+) diff --git a/.github/workflows/gradle-check.yml b/.github/workflows/gradle-check.yml index b78cd25..8175c4d 100644 --- a/.github/workflows/gradle-check.yml +++ b/.github/workflows/gradle-check.yml @@ -10,4 +10,8 @@ jobs: - uses: actions/setup-java@v4 with: { java-version: 11, distribution: temurin } - uses: gradle/actions/setup-gradle@v4 + with: + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" - run: ./gradlew check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98c9f7a..3122031 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,10 @@ jobs: - uses: actions/setup-java@v4 with: { java-version: 11, distribution: temurin } - uses: gradle/actions/setup-gradle@v4 + with: + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" - name: Get the release version from the release tag and set it in gradle.properties uses: matrei/github-actions/pre-release@main diff --git a/settings.gradle b/settings.gradle index 56b7974..0904ab4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,13 @@ +plugins { + id 'com.gradle.develocity' version '3.17.6' + id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2' +} + +develocity { + buildScan { + publishing.onlyIf { System.getenv('CI') } + uploadInBackground = false + } +} + rootProject.name = 'grails-inertia-plugin' \ No newline at end of file