-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
42 lines (35 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
import kotlin.io.path.isDirectory
import kotlin.io.path.isHidden
import kotlin.io.path.listDirectoryEntries
import kotlin.io.path.name
pluginManagement {
repositories {
gradlePluginPortal()
//google()
}
includeBuild("gradle/plugins") // use this to include our own convention plugins
includeBuild("gradle/settings") // use this to include our own convention plugins for settings.gradle.kts
}
dependencyResolutionManagement {
repositories {
mavenCentral()
//google()
//maven("https://jitpack.io")
}
includeBuild("gradle/platform") // use this to include our own gradle platform to centralize version management
// gradle/libs.versions.toml is automatically imported if exists
}
plugins {
// my setting plugin that simply has some other setting plugins where versions are managed in version catalogs
id("my.root-settings-plugins")
}
develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
}
}
rootProject.name = "My New Gradle Project"
rootDir.toPath().listDirectoryEntries()
.filter { it.isDirectory() && !it.isHidden() && it.listDirectoryEntries("{build,settings}.{gradle,gradle.kts}").any() }
.forEach { include(it.name) }