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 2
2
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
+ plugins {
6
+ // Keep it in sync with libs.versions.toml
7
+ id(" com.gradle.develocity" ) version " 3.19.2"
8
+ }
9
+
5
10
rootProject.name = " gradle-conventions-settings"
6
11
7
12
// Code below is a hack because a chicken-egg problem, I can't use myself as a settings-plugin
8
13
apply (from = " src/main/kotlin/conventions-repositories.settings.gradle.kts" )
9
14
apply (from = " src/main/kotlin/conventions-version-resolution.settings.gradle.kts" )
10
15
11
16
include(" :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