clikt icon indicating copy to clipboard operation
clikt copied to clipboard

JPMS split package

Open serjsysoev opened this issue 6 months ago • 1 comments

There are multiple modules that export the same package:

java.lang.module.ResolutionException: Modules clikt.mordant.jvm and clikt.jvm export package com.github.ajalt.clikt.output to module ***
        at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:900)
        at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:814)
        at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:735)
        at java.base/java.lang.module.Resolver.finish(Resolver.java:380)
        at java.base/java.lang.module.Configuration.<init>(Configuration.java:139)
        at java.base/java.lang.module.Configuration.resolve(Configuration.java:422)

Please consider moving both parts of the package to one module (or to a new separate module), otherwise it's not possible to use the library with JPMS.

serjsysoev avatar Aug 19 '25 11:08 serjsysoev

This would be a breaking change, so this will have to be part of a major version release

ajalt avatar Aug 24 '25 16:08 ajalt