settings.gradle.kts 822 Б
Newer Older
Alexander Sysoev's avatar
Alexander Sysoev включено в состав коммита
1
2
3
4
/*
 * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
 */

Osip Fatkullin's avatar
Osip Fatkullin включено в состав коммита
5
6
7
8
plugins {
    id("com.gradle.develocity") version "3.17.6"
}

Osip Fatkullin's avatar
Osip Fatkullin включено в состав коммита
9
10
11
12
13
14
15
16
dependencyResolutionManagement {
    versionCatalogs {
        create("libs") {
            from(files("../gradle/libs.versions.toml"))
        }
    }
}

Osip Fatkullin's avatar
Osip Fatkullin включено в состав коммита
17
rootProject.name = "build-settings-logic"
Osip Fatkullin's avatar
Osip Fatkullin включено в состав коммита
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

// region Build Cache Settings
develocity {
    // Should be in sync with ktorbuild.develocity.settings.gradle.kts
    server = "https://ge.jetbrains.com"
}

val isCIRun = providers.environmentVariable("TEAMCITY_VERSION").isPresent
buildCache {
    if (isCIRun) {
        local {
            isEnabled = false
        }
    }

    remote(develocity.buildCache) {
        isPush = isCIRun
        isEnabled = true
    }
}
// endregion