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
Marc Knaup
02/04/2021, 2:57 PM
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.
Marc Knaup
02/04/2021, 2:57 PM
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
Vampire
02/04/2021, 2:58 PM
"need" is a too strong word, "should" is better.
But a very strong "should".
If it isn't the case it is really unhandy.
Vampire
02/04/2021, 2:59 PM
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.