How to let kotlin library support java project friendly

Hi guys

I create an kotlin library and published into maven central.

However, if this library is used by pure java project, user must add the dependency “kotlin-stdlib” explicitly.

It looks like that the “koitlin-stdlib” is automatically excluded from grade/maven dependency tree because it is treated as provided dependency.

How to resolve this problem?

I find the reason.

implemetation(kotlin(“reflect”))

is not OK,

api(kotlin(“reflect”))

must be used.

Hmm, what is your Gradle config? I think it should generate a compile dependency for stdlib. Switching kotlin-reflect to api seems like a workaround, not as a solution.