-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle.kts
101 lines (88 loc) · 2.6 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
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
/*
* Copyright (c) 2023 Elide Ventures, LLC.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under the License.
*/
import elide.internal.conventions.kotlin.*
plugins {
kotlin("multiplatform")
id("elide.internal.conventions")
}
elide {
publishing {
id = "test"
name = "Elide Test"
description = "Universal testing utilities in every language supported by Kotlin and Elide."
}
kotlin {
target = KotlinTarget.All
explicitApi = true
}
}
kotlin {
js {
browser {
testTask(Action {
useKarma {
this.webpackConfig.experiments.add("topLevelAwait")
useChromeHeadless()
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
}
})
}
}
}
dependencies {
jvm {
implementation(projects.packages.server)
api(kotlin("stdlib-jdk8"))
api(kotlin("test-junit5"))
api(libs.jakarta.inject)
api(libs.kotlinx.coroutines.test)
api(libs.kotlinx.coroutines.jdk9)
api(mn.micronaut.context)
api(mn.micronaut.runtime)
api(mn.micronaut.test.junit5)
api(mn.micronaut.http)
api(libs.junit.jupiter.api)
api(libs.junit.jupiter.params)
implementation(libs.protobuf.java)
implementation(libs.protobuf.util)
implementation(libs.protobuf.kotlin)
implementation(libs.kotlinx.coroutines.core.jvm)
implementation(libs.kotlinx.coroutines.guava)
implementation(libs.grpc.testing)
implementation(libs.jsoup)
implementation(libs.truth)
implementation(libs.truth.java8)
implementation(libs.truth.proto)
implementation(mn.micronaut.http.client)
implementation(mn.micronaut.http.server)
runtimeOnly(libs.junit.jupiter.engine)
runtimeOnly(libs.logback)
}
js {
// KT-57235: fix for atomicfu-runtime error
api("org.jetbrains.kotlin:kotlinx-atomicfu-runtime:2.0.255-SNAPSHOT")
api(kotlin("stdlib-js"))
api(kotlin("test"))
api(libs.kotlinx.coroutines.test)
api(libs.kotlinx.coroutines.core.js)
}
}
tasks {
withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach {
dokkaSourceSets {
configureEach {
includes.from("module.md")
}
}
}
}