Do I understand correctly that to publish my proje...
# javascript
r
Do I understand correctly that to publish my project to Maven Central all dependencies need to be in Central as well? If so, can we expect
kotlin-wrappers
and
kotlinx-nodejs
artifacts to be published to Central anytime soon?
m
Each project’s setup decides where dependencies are loaded from. It may or may not include Maven Central, JCenter and any other repository. It’s totally fine to have a library and its dependencies across different repositories. Best is to list the needed repositories in your library’s documentation.
But yeah, given JCenter’s end of life it’s likely that all Kotlin artifacts in JCenter will be moved to or published in Maven Central until then 🙂
v
"need" is a too strong word, "should" is better. But a very strong "should". If it isn't the case it is really unhandy.
Actually a POM can also reference other repositories where to get transitive dependencies from, but this should better not be used for published libraries and I think at least Gradle will ignore that.
Here you find the requirements that are defined: https://central.sonatype.org/pages/requirements.html
a
In addition to all that, I have artifacts in maven central with dependencies to kotlin-wrappers. Works as expected