https://kotlinlang.org logo
Title
n

Nikolai Skladnev

08/16/2019, 11:04 AM
Hi, I have kotlinJS project and want publish artifact by maven-publish plugin, but created .pom hasn't our dependencies. How can I configure project for adding project dependencies to publicated .pom?
g

gildor

08/16/2019, 11:25 AM
What kind dependencies? Because it should work out of the box (at least with Kotlin plugin 1.3.50-eap)
n

Nikolai Skladnev

08/16/2019, 1:11 PM
We used 1.3.41 and dependency on kotlin-stdlib-js. We tried 1.3.50-eap-86, but got .pom without dependency.
g

gildor

08/16/2019, 1:13 PM
do you expect to have dependencies on stdlib?
maybe it’s just intentionally excluded?
i

Ilya Goncharov [JB]

08/16/2019, 1:26 PM
@gildor We really don't know how maven publish plugin should work, but for now we expect that at least maven dependencies (e.g. kotlin-stdlib-js) should be in final pom. But maybe it is incorrect understaning of what maven publish plugin do. So it is interesting for us, how we can include dependency information to publication.
g

gildor

08/16/2019, 1:27 PM
it should include dependency information, I just not sure that it includes stdlib-js, it may be just a bug
i

Ilya Goncharov [JB]

08/16/2019, 1:28 PM
It actual not only for stdlib-js, but for kodein-erased-js and other dependencies also
g

gildor

08/16/2019, 1:28 PM
I see
i

Ilya Goncharov [JB]

08/16/2019, 1:44 PM
Seems that the problem is that publishing use
artifact
, it is better to use
from(components['kotlin'])