Skip to content

Commit

Permalink
SONARSLANG-689 Onboard slang on Develocity (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo-pilastri-sonarsource authored and sonartech committed Dec 25, 2024
1 parent f1faa92 commit 5d6d988
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cirrus/.cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ skip: $CIRRUS_BRANCH == "public_master"

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

build_task:
container:
Expand All @@ -21,6 +23,7 @@ build_task:
go_cache:
folder: ${HOME}/go
script:
- echo "Develocity URL: https://develocity.sonar.build/scans?search.publicHostnames=cirrus-ci-task-${CIRRUS_TASK_ID}"
- .cirrus/build.sh
cleanup_gradle_script: |
rm -rf "${GRADLE_USER_HOME}"/caches/7.*/
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ version=1.19-SNAPSHOT
description=SonarSource Language analyzer
projectTitle=SLang
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx1024m
org.gradle.caching=true

20 changes: 20 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ pluginManagement {
}
}

plugins {
id 'com.gradle.develocity' version '3.18.2'
}

develocity {
server = 'https://develocity.sonar.build'
}

def isCI = System.getenv('CI') != null

buildCache {
local {
enabled = !isCI
}
remote(develocity.buildCache) {
enabled = true
push = isCI
}
}

dependencyResolutionManagement {
// slf4j is provided by SQ, SC or SL, should be aligned with sonar-plugin-api
def slf4jApiVersion = '1.7.30'
Expand Down

0 comments on commit 5d6d988

Please sign in to comment.