hi guys, is there something similiar like pypi for...
# announcements
s
hi guys, is there something similiar like pypi for Kotlin?
t
as those repositories usually contain built packages, it depends on the platform you built for. traditionally kotlin is used in the jvm space, so it is pretty common to just use the already existing maven repositories.
m
Yeah the maven repository is where a lot of packages are published for JVM: https://mvnrepository.com/
l
mvnrepository is a not always up to date mirror. You can search straight into mavenCentral here: https://search.maven.org/ GitHub and Google search also work.
s
ok
so if I would target JVM then I should publish this with maven?
or is this wrong speak? 🙂
l
What you want to do is not clear to me, so I can't tell you if you should do one thing or another.
s
@louiscad sorry to be unclear.
Yes I think I want exactly what @Tobias Berger said
l
I should publish
Consuming and publishing are different things.
s
Yeah I agree
okay let me rephrase this:
I build my Kotlin project for JVM and want to make this “package” available and to distribute it
I thought in the first place I could use Maven, but was not sure, if this is the standard procedure for Kotlin projects targeting JVM
✔️ 1
l
You want to publish to a maven repository. You can choose mavenCentral and/or Bintray's jcenter if it's open source. Othwerise, you probably want a private repo. Either way, gradle's built-in
maven-publish
plugin can help.
s
Thanks @louiscad I will have a look at all of this.
It’s a little open source project
good it worked.
in the end i used bintray gradle plugin from jfrog
l
@stephanmg If you ever make your library multiplatform, make sure you use
maven-publish
to have the Gradle metadata published correctly.
s
okay I will read about this
l
Note that if you depend on jvm-only dependencies, you cannot make it multiplatform.
Also, you might be interested in the #library-development channel
s
ok.
is it custom btw to distribute standalone apps to bintray?
or is it just for libraries?
l
It's aimed at distributing libraries, but you can deploy a JVM app there I guess
s
I see.