-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle.kts
89 lines (75 loc) · 2.34 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
/*
* 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")
kotlin("plugin.serialization")
id("elide.internal.conventions")
}
elide {
publishing {
id = "ssr"
name = "Elide SSR"
description = "Package for server-side rendering (SSR) capabilities with the Elide Framework."
}
kotlin {
target = KotlinTarget.Embedded
explicitApi = true
}
}
val encloseSdk = !System.getProperty("java.vm.version").contains("jvmci")
dependencies {
common {
implementation(kotlin("stdlib"))
api(projects.packages.http)
api(projects.packages.base)
api(libs.kotlinx.serialization.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.serialization.protobuf)
api(libs.kotlinx.collections.immutable)
api(libs.kotlinx.datetime)
}
commonTest {
implementation(projects.packages.test)
}
jvm {
api(mn.micronaut.http)
implementation(libs.graalvm.polyglot)
}
jvmTest {
implementation(kotlin("test"))
implementation(projects.packages.test)
implementation(libs.junit.jupiter.api)
implementation(libs.junit.jupiter.params)
implementation(libs.kotlinx.serialization.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.serialization.protobuf)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.collections.immutable)
implementation(libs.kotlinx.datetime)
runtimeOnly(libs.junit.jupiter.engine)
}
js {
// KT-57235: fix for atomicfu-runtime error
api("org.jetbrains.kotlin:kotlinx-atomicfu-runtime:2.0.255-SNAPSHOT")
}
}
tasks {
withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach {
dokkaSourceSets {
configureEach {
includes.from("module.md")
}
}
}
}