Add gradle build scan (#98)

This commit is contained in:
Trask Stalnaker 2021-09-24 13:26:09 -07:00 committed by GitHub
parent 79fca6706c
commit a6a06c6884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -8,6 +8,10 @@ pluginManagement {
}
}
plugins {
id("com.gradle.enterprise") version "3.6.3"
}
dependencyResolutionManagement {
repositories {
mavenCentral()
@ -15,6 +19,20 @@ dependencyResolutionManagement {
}
}
val isCI = System.getenv("CI") != null
val skipBuildscan = System.getenv("SKIP_BUILDSCAN").toBoolean()
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
if (isCI && !skipBuildscan) {
publishAlways()
tag("CI")
}
}
}
rootProject.name = "opentelemetry-java-contrib"
include(":all")