From 9b6030c9f26f74054e6d504c971318b97d98af65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Sun, 21 Jan 2024 16:12:58 +0100 Subject: [PATCH] Publish build scans --- .github/workflows/main.yml | 1 + testproject/settings.gradle | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59f1afd..63ecaa1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -151,3 +151,4 @@ jobs: build-root-directory: testproject project: "" debug: true + additional-gradle-arguments: "--scan" diff --git a/testproject/settings.gradle b/testproject/settings.gradle index 1131dd3..97f15e8 100644 --- a/testproject/settings.gradle +++ b/testproject/settings.gradle @@ -5,6 +5,10 @@ pluginManagement { } } +plugins { + id("com.gradle.enterprise") version "3.16.1" +} + dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { @@ -14,3 +18,12 @@ dependencyResolutionManagement { } rootProject.name = 'com.starter.dependencydiff.test' + +gradleEnterprise { + buildScan { + termsOfServiceUrl = "https://gradle.com/terms-of-service" + termsOfServiceAgree = "yes" + + uploadInBackground = System.getenv("CI") == null + } +} \ No newline at end of file