Skip to content

Add dependency on JVM version of the library to the POM file #167

Open
@ileasile

Description

@ileasile

We in Kotlin Jupyter kernel use Maven resolver for libraries resolution. Maven POM for kotlinx.datetime lacks any information of kotlinx-datetime-jvm dependency: https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-datetime/0.3.1/kotlinx-datetime-0.3.1.pom.
So, when we import library like this:

@file:DependsOn("org.jetbrains.kotlinx:kotlinx-datetime:0.3.1")

we end up with an almost empty JAR without .class files, it only contains metadata files.

This fixes the issue:

@file:DependsOn("org.jetbrains.kotlinx:kotlinx-datetime-jvm:0.3.1")

The problem will be solved if the runtime dependency on kotlinx-datetime-jvm will be added to the POM file. I think, similar problem arises in Maven projects as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    usageBuild problems in client projects

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions