aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts
diff options
context:
space:
mode:
authorIgor Yakovlev <igor.yakovlev@jetbrains.com>2023-01-25 19:03:21 +0100
committerigoriakovlev <54274820+igoriakovlev@users.noreply.github.com>2023-01-26 15:03:04 +0100
commit7a680acb011e38c66e2039cd5d831a49b16546ad (patch)
tree1e6c410868c474b58eeb996a67ef3f0a9fbbc237 /integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts
parentadfeed1b35b94ced80aba4e13dc926b2c389efb1 (diff)
downloaddokka-7a680acb011e38c66e2039cd5d831a49b16546ad.tar.gz
dokka-7a680acb011e38c66e2039cd5d831a49b16546ad.tar.bz2
dokka-7a680acb011e38c66e2039cd5d831a49b16546ad.zip
Support kotlin wasm target
Diffstat (limited to 'integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts')
-rw-r--r--integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts36
1 files changed, 36 insertions, 0 deletions
diff --git a/integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts b/integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts
new file mode 100644
index 00000000..ff6af466
--- /dev/null
+++ b/integration-tests/gradle/projects/it-wasm-basic/build.gradle.kts
@@ -0,0 +1,36 @@
+import org.jetbrains.dokka.gradle.DokkaTask
+import java.net.URL
+
+plugins {
+ kotlin("multiplatform")
+ id("org.jetbrains.dokka")
+}
+
+apply(from = "../template.root.gradle.kts")
+
+repositories {
+ // Remove it when wasm target will be published into public maven repository
+ maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
+}
+
+kotlin {
+ wasm()
+ sourceSets {
+ val wasmMain by getting {
+ dependencies {
+ implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4-wasm1")
+ implementation("org.jetbrains.kotlinx:atomicfu-wasm:0.18.5-wasm1")
+ }
+ }
+ }
+}
+
+tasks.withType<DokkaTask>().configureEach {
+ dokkaSourceSets {
+ configureEach {
+ externalDocumentationLink {
+ url.set(URL("https://kotlinlang.org/api/kotlinx.coroutines/"))
+ }
+ }
+ }
+}