-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsettings.gradle.kts
125 lines (114 loc) · 4.41 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven {
name = "kotlinRepoTools"
url = java.net.URI("https://d2gys1nrxnjnyg.cloudfront.net/releases")
content {
includeGroupByRegex("""aws\.sdk\.kotlin.*""")
}
}
}
}
dependencyResolutionManagement {
repositories {
mavenLocal()
mavenCentral()
google()
}
}
// TODO This is largely shared with aws-sdk-kotlin, consider commonizing
// Set up a sibling directory aws-crt-kotlin as a composite build, if it exists.
// Allows overrides via local.properties:
// compositeProjects=~/repos/aws-crt-kotlin,/tmp/some/other/thing,../../another/project
val compositeProjectList = try {
val localProperties = java.util.Properties().also {
it.load(File(rootProject.projectDir, "local.properties").inputStream())
}
val compositeProjects = localProperties.getProperty("compositeProjects") ?: "../aws-crt-kotlin"
val compositeProjectPaths = compositeProjects.split(",")
.map { it.replaceFirst("^~".toRegex(), System.getProperty("user.home")) } // expand ~ to user's home directory
.filter { it.isNotBlank() }
.map { file(it) }
compositeProjectPaths.also {
if (it.isNotEmpty()) {
println("Adding composite build projects from local.properties: ${compositeProjectPaths.joinToString { it.name }}")
}
}
} catch (_: Throwable) {
logger.error("Could not load composite project paths from local.properties")
listOf(file("../aws-crt-kotlin"))
}
compositeProjectList.forEach {
if (it.exists()) {
println("Including build '$it'")
includeBuild(it)
} else {
println("Ignoring invalid build directory '$it'")
}
}
rootProject.name = "smithy-kotlin"
include(":dokka-smithy")
include(":bom")
include(":runtime")
include(":runtime:auth:aws-credentials")
include(":runtime:auth:aws-signing-common")
include(":runtime:auth:aws-signing-crt")
include(":runtime:auth:aws-signing-default")
include(":runtime:auth:aws-signing-tests")
include(":runtime:auth:http-auth")
include(":runtime:auth:http-auth-api")
include(":runtime:auth:http-auth-aws")
include(":runtime:auth:identity-api")
include(":runtime:crt-util")
include(":runtime:observability:logging-slf4j2")
include(":runtime:observability:telemetry-api")
include(":runtime:observability:telemetry-defaults")
include(":runtime:observability:telemetry-provider-otel")
include(":runtime:observability:telemetry-provider-micrometer")
include(":runtime:protocol:aws-protocol-core")
include(":runtime:protocol:aws-event-stream")
include(":runtime:protocol:aws-json-protocols")
include(":runtime:protocol:aws-xml-protocols")
include(":runtime:protocol:smithy-rpcv2-protocols")
include(":runtime:protocol:http")
include(":runtime:protocol:http-client")
include(":runtime:protocol:http-client-engines:http-client-engine-crt")
include(":runtime:protocol:http-client-engines:http-client-engine-default")
include(":runtime:protocol:http-client-engines:http-client-engine-okhttp")
include(":runtime:protocol:http-client-engines:http-client-engine-okhttp4")
include(":runtime:protocol:http-client-engines:test-suite")
include(":runtime:protocol:http-test")
include(":runtime:runtime-core")
include(":runtime:serde")
include(":runtime:serde:serde-form-url")
include(":runtime:serde:serde-json")
include(":runtime:serde:serde-xml")
include(":runtime:serde:serde-cbor")
include(":runtime:smithy-client")
include(":runtime:smithy-test")
include(":runtime:testing")
include(":codegen:smithy-kotlin-codegen")
include(":codegen:smithy-kotlin-codegen-testutils")
include(":codegen:smithy-aws-kotlin-codegen")
include(":codegen:protocol-tests")
include(":tests")
include(":tests:benchmarks:aws-signing-benchmarks")
include(":tests:benchmarks:channel-benchmarks")
include(":tests:benchmarks:http-benchmarks")
include(":tests:benchmarks:serde-benchmarks")
include(":tests:compile")
include(":tests:codegen:nullability-tests")
include(":tests:codegen:paginator-tests")
include(":tests:codegen:serde-tests")
include(":tests:codegen:serde-codegen-support")
include(":tests:codegen:waiter-tests")
include(":tests:integration:slf4j-1x-consumer")
include(":tests:integration:slf4j-2x-consumer")
include(":tests:integration:slf4j-hybrid-consumer")