Skip to content

Commit 0f11890

Browse files
authored
SONARGO-75 Onboard sonar-go to Develocity (#5)
1 parent f0aa792 commit 0f11890

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.gradle.caching=true

settings.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ pluginManagement {
2121
}
2222
}
2323

24+
plugins {
25+
id("com.gradle.develocity") version "3.18.2"
26+
}
27+
2428
rootProject.name = "cloud-native-gradle-modules"
2529
include("gradle-modules")
2630

@@ -29,3 +33,18 @@ dependencyResolutionManagement {
2933
mavenCentral()
3034
}
3135
}
36+
37+
develocity {
38+
server.set("https://develocity.sonar.build")
39+
}
40+
41+
val isCI = System.getenv("CI") != null
42+
buildCache {
43+
local {
44+
isEnabled = !isCI
45+
}
46+
remote(develocity.buildCache) {
47+
isEnabled = true
48+
isPush = isCI
49+
}
50+
}

0 commit comments

Comments
 (0)