-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsettings.gradle.kts
55 lines (50 loc) · 1.68 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
import java.io.FileNotFoundException
import java.util.*
rootProject.name = "methanol-parent"
include("methanol")
include("methanol-testing")
include("methanol-gson")
include("methanol-jackson")
include("methanol-jackson-flux")
include("methanol-protobuf")
include("methanol-jaxb")
include("methanol-jaxb-jakarta")
include("methanol-brotli")
include("methanol-blackbox")
include("methanol-benchmarks")
include("methanol-samples")
include("methanol-samples:crawler")
include("methanol-samples:download-progress")
include("methanol-samples:upload-progress")
include("methanol-samples:kotlin")
include("spring-boot-test")
include("methanol-redis")
include("methanol-kotlin")
include("methanol-kotlin-examples")
include("methanol-moshi")
// Load local properties while giving precedence to properties defined through CLI.
try {
rootDir.resolve("local.properties")
.inputStream()
.run { use { stream -> Properties().apply { load(stream) } } }
.filter { !gradle.startParameter.projectProperties.containsKey(it.key) }
.also { localProperties ->
localProperties.forEach { (name, value) -> settings.extra[name.toString()] = value }
gradle.rootProject {
localProperties.forEach { (name, value) -> project.extra[name.toString()] = value }
}
}
} catch (_: FileNotFoundException) {
}
val includeNativeTests: String? by settings
if (includeNativeTests != null) {
include("quarkus-native-test")
include("native-test")
}
// Only include native brotli-jni project if explicitly requested.
val includeBrotliJni: String? by settings
if (includeBrotliJni != null
|| settings.gradle.startParameter.taskNames.contains("installBrotli")
) {
include("methanol-brotli:brotli-jni")
}