Skip to content

'api' dependencies have wrong 'runtime' scope in pom.xml #32

@davidvavra

Description

@davidvavra

Hello, thanks for this great library.

I have transitive dependencies in my KMP library, they are marked as 'api' instead of 'implementation'. However when published locally or to Maven Central, they are marked as 'runtime' instead of 'compile' in pom.xml. Which forces the library user to add these transitive dependencies manually.

The library is open-source here: https://github.com/step-up-labs/spayd-kmp

Dependencies I'm talking about:

api(libs.bignum)
api(libs.kotlinx.datetime)

which maps to POM:

<dependencies>
    <dependency>
      <groupId>com.ionspin.kotlin</groupId>
      <artifactId>bignum</artifactId>
      <version>0.3.10</version>
      <scope>runtime</scope>
  </dependency>
  <dependency>
      <groupId>org.jetbrains.kotlinx</groupId>
      <artifactId>kotlinx-datetime</artifactId>
      <version>0.6.1</version>
      <scope>runtime</scope>
  </dependency>
</dependencies>

Is this a bug in maven deployer or could you please point me in some direction which might fix the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions