-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsettings.gradle.kts
49 lines (41 loc) · 1.24 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
pluginManagement {
includeBuild("build-logic")
repositories {
mavenLocal()
gradlePluginPortal()
}
}
plugins {
id("build-logic.settings-conventions")
}
var isCi = !System.getenv("CI").isNullOrEmpty()
var acceptTos = isCi || file("YOU ACCEPTED THE TOS FOR PUBLISHING BUILD SCANS").exists()
develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = if (acceptTos) "yes" else null
uploadInBackground = !isCi
capture {
fileFingerprints = false
}
}
}
rootProject.name = "restrict-imports"
include("restrict-imports-enforcer-rule-core")
include("restrict-imports-enforcer-rule")
include("restrict-imports-enforcer-rule-maven-it")
include("restrict-imports-gradle-plugin")
include("readme")
include("test-coverage")
// check that every subproject has a custom build file
// based on the project name
rootProject.children.forEach { project ->
project.buildFileName = "${project.name}.gradle"
if (!project.buildFile.isFile) {
project.buildFileName = "${project.name}.gradle.kts"
}
require(project.buildFile.isFile) {
"${project.buildFile} must exist"
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")