Skip to content

Commit

Permalink
Publish build scans
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jan 21, 2024
1 parent 4edc742 commit ac5ae0f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,4 @@ jobs:
build-root-directory: testproject
project: ""
debug: true
additional-gradle-arguments: "--scan"
1 change: 0 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions testproject/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ pluginManagement {
}
}

plugins {
id("com.gradle.enterprise") version "3.16.1"
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
Expand All @@ -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"
}
}
}

0 comments on commit ac5ae0f

Please sign in to comment.