Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Activate build scans (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Mar 21, 2020
1 parent f1d6e01 commit 191caf6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -33,4 +33,5 @@ gradle-app.setting
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties


# marker file to accept publishing build scans
gradle/.build-scans-tos-agree
1 change: 1 addition & 0 deletions build.gradle.kts
Expand Up @@ -22,6 +22,7 @@ plugins {
`coveralls-conventions`
`documentation-conventions`
`publishing-conventions`
id("org.nosphere.gradle.github.actions") version "1.1.0"
}

repositories {
Expand Down
22 changes: 22 additions & 0 deletions settings.gradle.kts
@@ -1 +1,23 @@
rootProject.name = "bean-validators"

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

gradleEnterprise {
buildScan {
val isCi = !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty()
if(isCi || file("gradle/.build-scans-tos-agree").exists()) {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlways()
tag(System.getProperty("os.name"))
tag(if (isCi) "CI" else "LOCAL")
val repo = System.getenv("GITHUB_REPOSITORY")
val runId = System.getenv("GITHUB_RUN_ID")
if (!repo.isNullOrEmpty() && !runId.isNullOrBlank()) {
link("GitHub Actions run", "https://github.com/$repo/actions/runs/$runId")
}
}
}
}

0 comments on commit 191caf6

Please sign in to comment.