Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions topics/development/multiplatform-publish-lib-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,19 +263,6 @@ you can configure and disable sources publication with the `withSourcesJar()` AP
}
```

## Disable JVM environment attribute publication

Starting with Kotlin 2.0.0, the Gradle attribute [`org.gradle.jvm.environment`](https://docs.gradle.org/current/userguide/variant_attributes.html#sub:jvm_default_attributes)
is automatically published with all Kotlin variants to help distinguish between JVM and Android variants of Kotlin Multiplatform
libraries. The attribute indicates which library variant is suited for which JVM environment, and Gradle uses this information to help with
dependency resolution in your projects. The target environment can be "android", "standard-jvm", or "no-jvm".

You can disable the publication of this attribute by adding the following Gradle property to your `gradle.properties` file:

```none
kotlin.publishJvmEnvironmentAttribute=false
```

## Promote your library

Your library can be featured on the [JetBrains' multiplatform library catalog](https://klibs.io/).
Expand All @@ -287,4 +274,4 @@ see [FAQ](https://klibs.io/faq).
## What's next

* [Learn how to publish your Kotlin Multiplatform library to the Maven Central repository](multiplatform-publish-libraries.md)
* [See the Library authors' guidelines for best practices and tips on designing a library for Kotlin Multiplatform](https://kotlinlang.org/docs/api-guidelines-build-for-multiplatform.html)
* [See the Library authors' guidelines for best practices and tips on designing a library for Kotlin Multiplatform](https://kotlinlang.org/docs/api-guidelines-build-for-multiplatform.html)