File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
gradle-conventions-settings Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 22 * Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5+ plugins {
6+ // Keep it in sync with libs.versions.toml
7+ id(" com.gradle.develocity" ) version " 3.19.2"
8+ }
9+
510rootProject.name = " gradle-conventions-settings"
611
712// Code below is a hack because a chicken-egg problem, I can't use myself as a settings-plugin
813apply (from = " src/main/kotlin/conventions-repositories.settings.gradle.kts" )
914apply (from = " src/main/kotlin/conventions-version-resolution.settings.gradle.kts" )
1015
1116include(" :develocity" )
17+
18+ // Should be in sync with ktorbuild.develocity.settings.gradle.kts
19+ develocity {
20+ server = " https://ge.jetbrains.com"
21+ }
22+
23+ val isCIRun = providers.environmentVariable(" TEAMCITY_VERSION" ).isPresent ||
24+ providers.environmentVariable(" GITHUB_ACTIONS" ).isPresent
25+
26+ buildCache {
27+ if (isCIRun) {
28+ local {
29+ isEnabled = false
30+ }
31+ }
32+
33+ remote(develocity.buildCache) {
34+ isPush = isCIRun
35+ isEnabled = true
36+ }
37+ }
You can’t perform that action at this time.
0 commit comments