Skip to content

Commit

Permalink
Update Gradle Enterprise to Gradle Develocity (#3742)
Browse files Browse the repository at this point in the history
* Update Gradle Enterprise to Gradle Develocity
  • Loading branch information
adam-enko authored Aug 14, 2024
1 parent a3d5d43 commit 1a46f82
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build-settings-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ kotlin {
}

dependencies {
implementation(libs.gradlePlugin.gradle.enterprise)
implementation(libs.gradlePlugin.gradle.develocity)
implementation(libs.gradlePlugin.gradle.customUserData)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import DokkaBuildSettingsProperties.Companion.BUILD_SCAN_USERNAME_DEFAULT
import DokkaBuildSettingsProperties.Companion.dokkaBuildSettingsProperties

/**
* Gradle Enterprise conventions.
* [Gradle Develocity](https://docs.gradle.com/develocity/gradle-plugin/) conventions.
*
* See [DokkaBuildSettingsProperties] for properties.
*
* To use JetBrain's Gradle Enterprise set the URL
* To use JetBrain's Gradle Develocity set the URL
* https://ge.jetbrains.com/
* in `$GRADLE_USER_HOME/gradle.properties`†
*
Expand All @@ -23,11 +23,11 @@ import DokkaBuildSettingsProperties.Companion.dokkaBuildSettingsProperties
*/

plugins {
id("com.gradle.enterprise")
id("com.gradle.develocity")
id("com.gradle.common-custom-user-data-gradle-plugin") apply false
}

gradleEnterprise {
develocity {
val buildSettingsProps = dokkaBuildSettingsProperties

val buildScanEnabled = buildSettingsProps.buildScanEnabled.get()
Expand All @@ -36,16 +36,17 @@ gradleEnterprise {
plugins.apply("com.gradle.common-custom-user-data-gradle-plugin")
}

server = "https://ge.jetbrains.com/"

buildScan {
if (buildScanEnabled) {
server = "https://ge.jetbrains.com/"
publishAlwaysIf(buildScanEnabled)
publishing {
onlyIf { buildScanEnabled }
}

capture {
isTaskInputFiles = true
isBuildLogging = true
isUploadInBackground = true
}
capture {
buildLogging = buildScanEnabled
fileFingerprints = buildScanEnabled
testLogging = buildScanEnabled
}

val overriddenName = buildSettingsProps.buildScanUsername.orNull
Expand Down
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ gradlePlugin-shadow = "8.3.0"
gradlePlugin-gradlePluginPublish = "1.2.1"
gradlePlugin-gradleNode = "7.0.1"

## Gradle enterprise
gradlePlugin-gradle-customUserData = "1.13"
gradlePlugin-gradle-enterprise = "3.16.2"
## Gradle Develocity
gradlePlugin-gradle-customUserData = "2.0.2"
gradlePlugin-gradle-develocity = "3.17.6"

## Test
junit = "5.9.3"
Expand Down Expand Up @@ -83,7 +83,7 @@ gradlePlugin-android = { module = "com.android.tools.build:gradle", version.ref
gradlePlugin-shadow = { module = "com.gradleup.shadow:shadow-gradle-plugin", version.ref = "gradlePlugin-shadow" }
gradlePlugin-gradlePublish = { module = "com.gradle.publish:plugin-publish-plugin", version.ref = "gradlePlugin-gradlePluginPublish" }
gradlePlugin-gradle-customUserData = { module = "com.gradle:common-custom-user-data-gradle-plugin", version.ref = "gradlePlugin-gradle-customUserData" }
gradlePlugin-gradle-enterprise = { module = "com.gradle:gradle-enterprise-gradle-plugin", version.ref = "gradlePlugin-gradle-enterprise" }
gradlePlugin-gradle-develocity = { module = "com.gradle:develocity-gradle-plugin", version.ref = "gradlePlugin-gradle-develocity" }

gradlePlugin-androidApi = { module = "com.android.tools.build:gradle-api", version.ref = "gradlePlugin-android" }

Expand Down

0 comments on commit 1a46f82

Please sign in to comment.