Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Only accept gradle build scan TOS on CI builds #5384

Merged
merged 1 commit into from Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 17 additions & 2 deletions gradle-plugins/settings.gradle.kts
@@ -1,7 +1,22 @@
pluginManagement {
plugins {
id("com.gradle.plugin-publish") version "1.0.0"
id("dev.hargrave.addmavendescriptor") version "1.0.0"
id("com.gradle.plugin-publish") version("1.0.0")
id("dev.hargrave.addmavendescriptor") version("1.0.0")
id("com.gradle.enterprise") version("3.11.1")
}
}

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

if (System.getenv("CI").toBoolean()) {
gradleEnterprise {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}

Expand Down
20 changes: 14 additions & 6 deletions settings.gradle
Expand Up @@ -4,6 +4,12 @@

import aQute.bnd.osgi.Constants

pluginManagement {
plugins {
id "com.gradle.enterprise" version "3.11.1"
}
}

/* Add bnd gradle plugin as a script dependency */
buildscript {
repositories {
Expand Down Expand Up @@ -53,14 +59,16 @@ buildscript {
}

plugins {
id "com.gradle.enterprise" version "3.11.1"
id "com.gradle.enterprise"
}

gradleEnterprise {
buildScan {
publishAlwaysIf(Boolean.parseBoolean(System.getenv("CI")))
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
if (Boolean.parseBoolean(System.getenv("CI"))) {
gradleEnterprise {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}

Expand Down