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 22, 2024
1 parent 4edc742 commit c35062e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*.{kt,kts}]
max_line_length = 140
indent_size = 4
insert_final_newline = true
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ktlint_code_style = intellij_idea
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"
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fi

if [ "$INPUT_DEBUG" == "true" ]; then
echo "download finished"
java -version
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 c35062e

Please sign in to comment.