Skip to content

Commit

Permalink
Use Develocity
Browse files Browse the repository at this point in the history
Co-authored-by: Marharyta Nedzelska <[email protected]>
Co-authored-by: Evgeny Mandrikov <[email protected]>
  • Loading branch information
Godin and leveretka committed Jan 9, 2025
1 parent d06588c commit b340d37
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ env:
ORG_GRADLE_PROJECT_signingPassword: VAULT[development/kv/data/sign data.passphrase]
ORG_GRADLE_PROJECT_signingKeyId: 0x7DCD4258

DEVELOCITY_TOKEN: VAULT[development/kv/data/develocity data.token]
DEVELOCITY_ACCESS_KEY: develocity.sonar.build=${DEVELOCITY_TOKEN}

# Use bash (instead of sh on linux or cmd.exe on windows)
CIRRUS_SHELL: bash

Expand Down
5 changes: 5 additions & 0 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@
<sha256 value="4c0fda2b1d317750d7ea324e36c70b2bc48310c0aaae67b98df0915d696d7111" origin="Verified"/>
</artifact>
</component>
<component group="com.gradle" name="develocity-gradle-plugin" version="3.18.2">
<artifact name="develocity-gradle-plugin-3.18.2.jar">
<sha256 value="1cdc2770a1d01d99185a81a25b08bb749a0bc78aed6b3358e268060242e5719a" origin="Verified"/>
</artifact>
</component>
<component group="com.gradleup.shadow" name="shadow-gradle-plugin" version="8.3.1">
<artifact name="shadow-gradle-plugin-8.3.1.jar">
<sha256 value="49d0b14065a344fe8c694a1186c8d706d98e2853c76a5b53ea4a93ad1bb01b3d" origin="Verified"/>
Expand Down
25 changes: 25 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,28 @@ dependencyResolutionManagement {
}
}
}

plugins {
id("com.gradle.develocity") version("3.18.2")
}

val isCI: Boolean = System.getenv("CI") != null

develocity {
server = "https://develocity.sonar.build"
buildScan {
if (isCI) {
uploadInBackground.set(false)
tag("CI")
for (key in listOf(
"CIRRUS_BUILD_ID",
"CIRRUS_TASK_ID",
"CIRRUS_TASK_NAME",
"CIRRUS_BRANCH",
"CIRRUS_CHANGE_IN_REPO"
)) {
value(key, System.getenv(key))
}
}
}
}

0 comments on commit b340d37

Please sign in to comment.