-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathbuild.gradle.kts
52 lines (42 loc) · 1.28 KB
/
build.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
/*
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
extra["globalM2"] = "${project.file("build")}/m2"
extra["publishLocal"] = project.hasProperty("publishLocal")
apply(from = "gradle/verifier.gradle")
val internalProjects = listOf(
"ktor-client-test-base",
"ktor-client-tests",
"ktor-server-test-base",
"ktor-server-test-suites",
"ktor-server-tests",
"ktor-client-content-negotiation-tests",
"ktor-test-base",
)
// Point old artifact to new location
extra["relocatedArtifacts"] = mapOf(
"ktor-server-test-base" to "ktor-server-test-host",
)
val nonDefaultProjectStructure by extra {
listOf(
"ktor-bom",
"ktor-java-modules-test",
)
}
plugins {
id("ktorbuild.doctor")
id("ktorbuild.compatibility")
id("ktorbuild.dokka")
}
println("Build version: ${project.version}")
subprojects {
when (project.name) {
in nonDefaultProjectStructure -> apply(plugin = "ktorbuild.base")
in internalProjects -> apply(plugin = "ktorbuild.project.internal")
else -> {
apply(plugin = "ktorbuild.project.library")
configurePublication()
}
}
}
println("Using Kotlin compiler version: ${libs.versions.kotlin.get()}")