-
Notifications
You must be signed in to change notification settings - Fork 172
/
Copy pathsettings.gradle.kts
276 lines (187 loc) · 6.94 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
rootProject.name = "kotlin-wrappers"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
create("libs") {
val karakumVersion = extra["karakum.version"] as String
plugin("karakum", "io.github.sgrishchenko.karakum").version(karakumVersion)
val kotlinVersion = extra["kotlin.version"] as String
library("kotlin-test", "org.jetbrains.kotlin", "kotlin-test").version(kotlinVersion)
library("kotlin-testJunit", "org.jetbrains.kotlin", "kotlin-test-junit").version(kotlinVersion)
val coroutinesVersion = extra["kotlinx-coroutines.version"] as String
library("coroutines-core", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").version(coroutinesVersion)
library("coroutines-test", "org.jetbrains.kotlinx", "kotlinx-coroutines-test").version(coroutinesVersion)
val htmlVersion = extra["kotlinx-html.version"] as String
library("kotlinx-html", "org.jetbrains.kotlinx", "kotlinx-html").version(htmlVersion)
npmLibraries()
}
}
}
fun VersionCatalogBuilder.npmLibraries() {
val lines = file("gradle.properties").readLines()
for ((commentLine, versionLine) in lines.windowed(2)) {
val version = versionLine
.substringAfter(".npm.version=", "")
.ifEmpty { null }
?: continue
val packageName = commentLine
.removePrefix("# https://www.npmjs.com/package/")
.takeIf { it != commentLine }
?: continue
val packageAlias = packageName
.removePrefix("@")
.replace(
regex = Regex("""-(\w)"""),
transform = { it.groupValues[1].uppercase() }
)
.replace("/", "-")
library("npm-$packageAlias", "npm", packageName).version(version)
}
}
fun includeKarakum(path: String) {
includeBuild("$path/karakum") {
name = "$path-karakum"
}
}
includeBuild("build-logic")
include("docs")
includeKarakum("kotlin-actions")
// Kotlin/JS: GitHub Actions Artifact wrappers
include("kotlin-actions-artifact")
// Kotlin/JS: GitHub Actions Cache wrappers
include("kotlin-actions-cache")
// Kotlin/JS: GitHub Actions Core wrappers
include("kotlin-actions-core")
// Kotlin/JS: GitHub Actions Exec wrappers
include("kotlin-actions-exec")
// Kotlin/JS: GitHub Actions GitHub wrappers
include("kotlin-actions-github")
// Kotlin/JS: GitHub Actions Glob wrappers
include("kotlin-actions-glob")
// Kotlin/JS: GitHub Actions HTTP Client wrappers
include("kotlin-actions-http-client")
// Kotlin/JS: GitHub Actions IO wrappers
include("kotlin-actions-io")
// Kotlin/JS: GitHub Actions Tool Cache wrappers
include("kotlin-actions-tool-cache")
// Kotlin/JS: GitHub Actions Toolkit wrappers
include("kotlin-actions-toolkit")
// Kotlin/JS: Ajv JSON schema validator wrappers
include("kotlin-ajv")
// Kotlin/JS: Browser APIs missing from the standard library
include("kotlin-browser")
includeKarakum("kotlin-browser")
includeKarakum("kotlin-cesium")
// Kotlin/JS: CesiumJS wrappers
include("kotlin-cesium-engine")
// Kotlin/JS: CesiumJS wrappers
include("kotlin-cesium-widgets")
// Platform-agnostic CSS support
include("kotlin-css")
// Kotlin/JS: Zero-runtime CSS core typings
include("kotlin-cssom-core")
// Kotlin/JS: Zero-runtime CSS typings
include("kotlin-csstype")
includeKarakum("kotlin-csstype")
// Kotlin/JS: Electron wrappers
include("kotlin-electron")
// Kotlin/JS: Emotion Cache wrappers
include("kotlin-emotion-cache")
// Kotlin/JS: Emotion CSS wrappers
include("kotlin-emotion-css")
// Kotlin/JS: Emotion React wrappers
include("kotlin-emotion-react")
// Kotlin/JS: Emotion Styled wrappers
include("kotlin-emotion-styled")
// Kotlin/JS: Emotion Utils wrappers
include("kotlin-emotion-utils")
// Kotlin/JS: APIs missing from the standard library
include("kotlin-js")
// Kotlin/JS: Helper for `kotlin-js`
include("kotlin-js-core")
// Kotlin/JS: JSZip wrappers
include("kotlin-jszip")
// Kotlin/JS: Material UI wrappers
include("kotlin-mui-material")
// Kotlin/JS: MUI Base UI wrappers
include("kotlin-mui-base")
// Kotlin/JS: Material UI Icons wrappers
include("kotlin-mui-icons-material")
// Kotlin/JS: MUI Lab wrappers
include("kotlin-mui-lab")
// Kotlin/JS: MUI System wrappers
include("kotlin-mui-system")
// Kotlin/JS: MUI X Date Pickers wrappers
include("kotlin-muix-date-pickers")
// Kotlin/JS: MUI X Tree View wrappers
include("kotlin-muix-tree-view")
// Kotlin/JS: Node.js wrappers
include("kotlin-node")
// Kotlin/JS: null-writable wrappers
include("kotlin-null-writable")
// Kotlin/JS: Popper Core wrappers
include("kotlin-popperjs-core")
includeKarakum("kotlin-popperjs-core")
// Kotlin/JS: JSON Lint wrappers
include("kotlin-prantlf-jsonlint")
// Kotlin/JS: Preact Signals Core wrappers
include("kotlin-preact-signals-core")
// Kotlin/JS: Preact Signals React wrappers
include("kotlin-preact-signals-react")
// Kotlin/JS: React wrappers
include("kotlin-react")
// Kotlin/JS: react-beautiful-dnd wrappers
include("kotlin-react-beautiful-dnd")
// Kotlin/JS: React wrappers
include("kotlin-react-core")
// Kotlin/JS: React DOM wrappers
include("kotlin-react-dom")
includeKarakum("kotlin-react-dom")
// Kotlin/JS: React DOM legacy wrappers
include("kotlin-react-dom-legacy")
// Kotlin/JS: React DOM Test Utilities wrappers
include("kotlin-react-dom-test-utils")
// Kotlin/JS: React legacy wrappers
include("kotlin-react-legacy")
// Kotlin/JS: React Popper wrappers
include("kotlin-react-popper")
// Kotlin/JS: React Router wrappers
include("kotlin-react-router")
// Kotlin/JS: React Select wrappers
include("kotlin-react-select")
// Kotlin/JS: React Use wrappers
include("kotlin-react-use")
// Kotlin/JS: semver wrappers
include("kotlin-semver")
// Kotlin/JS: a reimplementation of kotlin-styled in pure Kotlin, without styled-components
include("kotlin-styled-next")
includeKarakum("kotlin-tanstack-query")
// Kotlin/JS: Tanstack Query Core wrappers
include("kotlin-tanstack-query-core")
// Kotlin/JS: Tanstack React Query wrappers
include("kotlin-tanstack-react-query")
// Kotlin/JS: Tanstack React Query Devtools wrappers
include("kotlin-tanstack-react-query-devtools")
// Kotlin/JS: Tanstack React Table wrappers
include("kotlin-tanstack-react-table")
// Kotlin/JS: Tanstack React Virtual wrappers
include("kotlin-tanstack-react-virtual")
includeKarakum("kotlin-tanstack-table")
// Kotlin/JS: Tanstack Table Core wrappers
include("kotlin-tanstack-table-core")
includeKarakum("kotlin-tanstack-virtual")
// Kotlin/JS: Tanstack Virtual Core wrappers
include("kotlin-tanstack-virtual-core")
// Kotlin/JS: TypeScript wrappers
include("kotlin-typescript")
// Kotlin/JS: @vercel/ncc wrappers
include("kotlin-vercel-ncc")
// Kotlin/JS: Common web wrappers
include("kotlin-web")
// Kotlin/JS: yaml wrappers
include("kotlin-yaml")
include("kotlin-wrappers-bom")
include("kotlin-wrappers-catalog")