build: update gradle script

This commit is contained in:
ketal
2024-06-10 13:02:39 +08:00
parent a99af927ec
commit 44029a48b2
4 changed files with 12 additions and 16 deletions

View File

@@ -1,4 +0,0 @@
# Gradle properties are not passed to included builds https://github.com/gradle/gradle/issues/2534
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configureondemand=true

View File

@@ -0,0 +1 @@
../gradle.properties

Binary file not shown.

View File

@@ -1,5 +0,0 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -14,7 +14,7 @@ pluginManagement {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google() {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
@@ -40,16 +40,20 @@ dependencyResolutionManagement {
includeBuild("build-logic")
plugins {
`gradle-enterprise`
id("com.gradle.develocity") version "3.17.4"
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}
gradleEnterprise {
develocity {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlwaysIf(System.getenv("GITHUB_ACTIONS") == "true")
publishOnFailure()
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
val isOffline = providers.provider { gradle.startParameter.isOffline }.getOrElse(false)
val ci = System.getenv("GITHUB_ACTIONS") == "true"
publishing {
onlyIf { System.getenv("GITHUB_ACTIONS") == "true" }
onlyIf { !isOffline && (it.buildResult.failures.isNotEmpty() || ci) }
}
}
}