From 1a736ab8523343d6963a45da3a41caacaca58b40 Mon Sep 17 00:00:00 2001 From: Mate Molnar Date: Tue, 26 Nov 2024 16:47:16 +0100 Subject: [PATCH] BUILD-7003 Setup Develocity --- .cirrus.yml | 7 +- gradle.properties | 1 + gradle/verification-metadata.xml | 171 +++++++++++++++++++++++++++++++ settings.gradle.kts | 20 ++++ 4 files changed, 195 insertions(+), 4 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 612126bb5..d64f80e8b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,8 +1,4 @@ env: - CIRRUS_VAULT_URL: https://vault.sonar.build:8200 - CIRRUS_VAULT_AUTH_PATH: jwt-cirrusci - CIRRUS_VAULT_ROLE: cirrusci-${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME} - ARTIFACTORY_URL: VAULT[development/kv/data/repox data.url] ARTIFACTORY_PRIVATE_USERNAME: vault-${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader @@ -18,6 +14,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 diff --git a/gradle.properties b/gradle.properties index 1fd81b5da..9d07ae7ea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,3 +4,4 @@ description=Code Analyzer for Kotlin projectTitle=Kotlin kotlinVersion=2.0.21 org.gradle.jvmargs=-Xmx4096M +org.gradle.caching=true diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 72e832da3..c63210a41 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -220,6 +220,11 @@ + + + + + @@ -745,6 +750,11 @@ + + + + + @@ -825,6 +835,11 @@ + + + + + @@ -835,6 +850,11 @@ + + + + + @@ -845,11 +865,21 @@ + + + + + + + + + + @@ -865,6 +895,11 @@ + + + + + @@ -880,6 +915,11 @@ + + + + + @@ -910,6 +950,11 @@ + + + + + @@ -925,6 +970,11 @@ + + + + + @@ -940,6 +990,11 @@ + + + + + @@ -965,6 +1020,11 @@ + + + + + @@ -980,6 +1040,11 @@ + + + + + @@ -995,6 +1060,11 @@ + + + + + @@ -1016,6 +1086,14 @@ + + + + + + + + @@ -1031,6 +1109,11 @@ + + + + + @@ -1046,6 +1129,11 @@ + + + + + @@ -1061,6 +1149,11 @@ + + + + + @@ -1076,6 +1169,11 @@ + + + + + @@ -1091,6 +1189,11 @@ + + + + + @@ -1106,6 +1209,11 @@ + + + + + @@ -1156,6 +1264,11 @@ + + + + + @@ -1166,6 +1279,11 @@ + + + + + @@ -1176,6 +1294,11 @@ + + + + + @@ -1196,6 +1319,11 @@ + + + + + @@ -1211,6 +1339,11 @@ + + + + + @@ -1226,6 +1359,11 @@ + + + + + @@ -1241,6 +1379,11 @@ + + + + + @@ -1256,6 +1399,11 @@ + + + + + @@ -1292,6 +1440,14 @@ + + + + + + + + @@ -1395,6 +1551,11 @@ + + + + + @@ -1410,6 +1571,11 @@ + + + + + @@ -1425,6 +1591,11 @@ + + + + + diff --git a/settings.gradle.kts b/settings.gradle.kts index 31d509284..d780d735d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -93,3 +93,23 @@ dependencyResolutionManagement { } } } + +plugins { + id("com.gradle.develocity") version("3.18.2") +} + +develocity { + server = "https://develocity.sonar.build" +} + +val isCI: Boolean = System.getenv("CI") != null + +buildCache { + local { + isEnabled = !isCI + } + remote(develocity.buildCache) { + isEnabled = true + isPush = isCI + } +}