-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
45 lines (37 loc) · 995 Bytes
/
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
// © Copyright 2024 Caleb Cushing
// SPDX-License-Identifier: MIT
rootProject.name = "gradle-convention"
pluginManagement {
repositories {
gradlePluginPortal()
}
}
plugins {
id("com.gradle.develocity") version "3.18.1"
}
develocity {
val ci = providers.environmentVariable("CI")
buildScan {
publishing.onlyIf { ci.isPresent }
termsOfUseUrl.set("https://gradle.com/terms-of-service")
termsOfUseAgree.set("yes")
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
rulesMode = RulesMode.FAIL_ON_PROJECT_RULES
repositories {
mavenCentral()
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
rootDir.resolve("module").listFiles()?.forEach { file ->
if (file.isDirectory && file?.list { _, name -> name.startsWith("build.gradle") }
?.isNotEmpty() == true
) {
val name = file.name
include(":$name")
project(":$name").projectDir = file("module/$name")
}
}