-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle.kts
50 lines (42 loc) · 1.21 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
@file:Suppress("UnstableApiUsage")
pluginManagement {
repositories {
maven("https://gradle.pkg.st/")
}
}
plugins {
id("com.gradle.enterprise") version("3.15.1")
id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
}
val embeddedDeps: String by settings
val micronautVersion: String by settings
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
dependencyResolutionManagement {
repositoriesMode.set(
RepositoriesMode.PREFER_SETTINGS
)
repositories {
maven("https://maven.pkg.st/")
}
versionCatalogs {
create("libs") {
if (embeddedDeps != "true") {
from(files("../../gradle/libs.versions.toml"))
}
}
}
}
rootProject.name = "buildless-plugin-gradle"
val cacheUsername: String? by settings
val cachePassword: String? by settings
val cachePush: String? by settings
val remoteCache = System.getenv("GRADLE_CACHE_REMOTE")?.toBoolean() ?: false
val localCache = System.getenv("GRADLE_CACHE_LOCAL")?.toBoolean() ?: true
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("GROOVY_COMPILATION_AVOIDANCE")