You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/multiplatform/multiplatform-publish-lib.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,16 @@ Learn more about [adding dependencies](multiplatform-add-dependencies.md).
44
44
45
45
This `kotlinMultiplatform` publication includes metadata artifacts and references the other publications as its variants.
46
46
47
-
> Some repositories, such as Maven Central, require that the root module contains a JAR artifact without a classifier, for example `kotlinMultiplatform-1.0.jar`.
48
-
> The Kotlin Multiplatform plugin automatically produces the required artifact with the embedded metadata artifacts.
49
-
> This means you don't have to customize your build by adding an empty artifact to the root module of your library to meet the repository's requirements.
47
+
Some repositories, such as Maven Central, require the root module to contain a JAR artifact without a classifier,
48
+
for example `kotlinMultiplatform-1.0.jar`.
49
+
The Kotlin Multiplatform plugin automatically produces the required artifact with the embedded metadata artifacts.
50
+
This means you don't have to add an empty artifact to the root module of your library to
51
+
meet the repository's requirements.
52
+
53
+
> Learn more about JAR artifact generation with [Gradle](multiplatform-configure-compilations.md#compilation-for-jvm)
54
+
> and [Maven](maven.md#create-jar-file) build systems.
50
55
>
51
-
{style="note"}
56
+
{style="tip"}
52
57
53
58
The `kotlinMultiplatform` publication may also need the sources and documentation artifacts if that is required by the repository. In that case,
54
59
add those artifacts by using [`artifact(...)`](https://docs.gradle.org/current/javadoc/org/gradle/api/publish/maven/MavenPublication.html#artifact-java.lang.Object-)
0 commit comments