-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
57 lines (50 loc) · 1.39 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
import java.nio.file.Files
import java.nio.file.Paths
//in Gradle 7.x this property is deprecated.
//enableFeaturePreview("VERSION_ORDERING_V2")
rootProject.name = "marvel"
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven("https://oss.sonatype.org/content/repositories/snapshots") {
mavenContent {
snapshotsOnly()
}
}
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "kotlinx-serialization") {
useModule("org.jetbrains.kotlin:kotlin-serialization:${requested.version}")
}
}
}
}
plugins {
`gradle-enterprise`
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
include(
":convention",
//":gatling",
// ":legacy-openapi",
":shared"
)
for (serviceDir in setOf("time-service")) {
Files.list(Paths.get("$rootDir", serviceDir)).use {
it.filter { Files.isDirectory(it) }
.forEach {
val projectFolderName = ":${it.fileName}"
include(projectFolderName)
val projectDescriptor = project(projectFolderName)
projectDescriptor.name = "$serviceDir.${it.fileName}"
projectDescriptor.projectDir = it.toFile()
}
}
}