https://kotlinlang.org logo
#feed
Title
# feed
b

Big Chungus

06/07/2021, 10:33 AM
Aaand we're past 4.5k kotlin libs on maven central! Check them out on kamp.petuska.dev
K 29
z

zsmb

06/07/2021, 10:35 AM
Is this content all automatically generated? For example, searching for “chat” surfaces one of our Stream Chat libs as seen in the screenshot below But we have several artifacts on MavenCentral https://search.maven.org/search?q=stream%20chat
Ah, the
core
artifact is the only pure Kotlin one we have, so it’s probably that Android libraries are excluded
b

Big Chungus

06/07/2021, 10:38 AM
It scans mavenCentral nightly to self-update. Inclusion condition is that the artefact has gradle-metadata published with kotlin attributes. So if your module uses kotlin plugin (even if there's no kotlin source files) it'll be picked up.
e

edrd

06/07/2021, 5:46 PM
do you have a history of how many there were, say, in the last month?
would love to see some charts 😀
b

Big Chungus

06/07/2021, 5:52 PM
Yeah, probably should've started capturing some data snapshots a while ago 😀
z

zsmb

06/07/2021, 6:08 PM
Both of these modules have Kotlin in them and Gradle metadata published, but only the first of them show up on this site: https://repo1.maven.org/maven2/io/getstream/stream-chat-android-core/4.11.0/ https://repo1.maven.org/maven2/io/getstream/stream-chat-android-client/4.11.0/ To be fair, the latter only has Kotlin mentions in the dependencies. I think that might be the case for all Android libraries or AARs though. Might be a good idea to also include those.
b

Big Chungus

06/07/2021, 6:40 PM
Does the other one have kotlin plugin applied?
b

Big Chungus

06/07/2021, 9:42 PM
@zsmb looks like kotlin-android plugin does not add any kotlin attributes to gradle metadata, that's why it's not getting picked up.
l

louiscad

09/08/2021, 7:46 AM
@Big Chungus A fallback approach for Android libraries would be checking for an
.aar
file to exist, and check in the
pom.xml
that there's a dependency on one of the Kotlin stdlib artifacts.
b

Big Chungus

09/08/2021, 7:48 AM
Hmm, an interesting suggestion. I'll give it a go for the next release.
3 Views