File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurr
2
2
import org.jetbrains.dokka.base.DokkaBase
3
3
import org.jetbrains.dokka.base.DokkaBaseConfiguration
4
4
import org.jetbrains.dokka.gradle.DokkaTask
5
- import org.jetbrains.kotlin.gradle.targets.js.dsl. ExperimentalWasmDsl
5
+ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
6
6
import java.io.File
7
7
import java.util.*
8
8
@@ -30,6 +30,9 @@ version = "2.0.0-alpha"
30
30
// See https://central.sonatype.com/namespace/org.jetbrains.compose.material
31
31
// for the targets that Compose Multiplatform supports
32
32
kotlin {
33
+ // Publishes source files; for javadoc/kdoc/dokka see the publications block
34
+ withSourcesJar(publish = true )
35
+
33
36
androidTarget { publishLibraryVariants(" release" ) }
34
37
// Windows, Linux, macOS (with Java runtime)
35
38
jvm(name = " desktop" )
@@ -213,6 +216,7 @@ publishing {
213
216
}
214
217
}
215
218
publications.withType<MavenPublication > {
219
+ // Publishes javadoc/kdoc/dokka; for sources see the kotlin block
216
220
artifact(javadocJar) // Required a workaround. See below
217
221
pom {
218
222
url = " https://mahozad.ir/${project.name} "
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ rootProject.name = "wavy-slider-project"
3
3
enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
4
4
5
5
include(" :library" )
6
+ // We want the project name to be "wavy-slider" (suffixed with proper platform type) but its directory/folder name to be "library".
7
+ // If the project name were not set here, it would be published with its directory/folder name ("library")
8
+ // (suffixed with proper platform type added by Kotlin Multiplatform).
6
9
project(" :library" ).name = " wavy-slider"
7
10
include(" :showcase:shared" )
8
11
include(" :showcase:androidApp" )
Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.targets.js.dsl. ExperimentalWasmDsl
1
+ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2
2
3
3
plugins {
4
4
alias(libs.plugins.kotlin.multiplatform)
You can’t perform that action at this time.
0 commit comments