-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
104 lines (73 loc) · 2.12 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@file:Suppress("UnstableApiUsage")
pluginManagement {
includeBuild("build-logic")
repositories {
mavenCentral()
gradlePluginPortal()
}
}
rootProject.name = "pkl"
include("bench")
include("docs")
include("stdlib")
include("pkl-cli")
include("pkl-codegen-java")
include("pkl-codegen-kotlin")
include("pkl-commons")
include("pkl-commons-cli")
include("pkl-commons-test")
include("pkl-config-java")
include("pkl-config-kotlin")
include("pkl-core")
include("pkl-doc")
include("pkl-gradle")
include("pkl-executor")
include("pkl-tools")
include("pkl-server")
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.1"
}
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
rulesMode = RulesMode.FAIL_ON_PROJECT_RULES
repositories { mavenCentral() }
}
val javaVersion = JavaVersion.current()
require(javaVersion.isJava11Compatible) {
"Project requires Java 11 or higher, but found ${javaVersion.majorVersion}."
}
if (
gradle.startParameter.taskNames.contains("updateDependencyLocks") ||
gradle.startParameter.taskNames.contains("uDL")
) {
gradle.startParameter.isWriteDependencyLocks = true
}
for (prj in rootProject.children) {
prj.buildFileName = "${prj.name}.gradle.kts"
}
buildCache {
local {
isEnabled = true
removeUnusedEntriesAfterDays = 14
directory = file("../.codebase/build-cache")
}
System.getenv("BUILDLESS_APIKEY")
?.ifBlank { null }
?.let { apiKey ->
remote<HttpBuildCache> {
isEnabled =
extra.properties["remoteCache"] == "true" || !System.getenv("CI").isNullOrBlank()
isPush = extra.properties["cachePush"] != "false" || !System.getenv("CI").isNullOrBlank()
isUseExpectContinue = true
url = uri("https://gradle.less.build/cache/generic")
credentials {
username = "apikey"
password = apiKey
}
}
}
}
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")