From ac5ae0f2fb37c1067fe8f8d4addbb00525e9b66e 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 + entrypoint.sh | 1 - testproject/settings.gradle | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) 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/entrypoint.sh b/entrypoint.sh index a975cf6..0ec724f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,7 +19,6 @@ fi if [ "$INPUT_DEBUG" == "true" ]; then echo "download finished" ls -al - ./gradlew $ADDITIONAL_GRADLE_ARGUMENTS projects fi ./gradlew $ADDITIONAL_GRADLE_ARGUMENTS "$INPUT_PROJECT":dependencies --configuration "$INPUT_CONFIGURATION" >new_diff.txt git fetch --force origin "$INPUT_BASEREF":"$INPUT_BASEREF" --no-tags diff --git a/testproject/settings.gradle b/testproject/settings.gradle index 1131dd3..463fec6 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,17 @@ dependencyResolutionManagement { } rootProject.name = 'com.starter.dependencydiff.test' + +gradleEnterprise { + buildScan { + termsOfServiceUrl = "https://gradle.com/terms-of-service" + termsOfServiceAgree = "yes" + + uploadInBackground = System.getenv("CI") == null + + if (System.getenv("CI")) { + publishAlways() + tag "CI" + } + } +} \ No newline at end of file