Where do you all lookup "maven"? if i go here for ...
# random
c
Where do you all lookup "maven"? if i go here for example, https://mvnrepository.com/artifact/com.squareup.okhttp3 its tough for me to figure out whats going on. meanwhile https://maven.google.com is so easy to navigate.
j
wdym by "lookup maven"? Search a repository for an artifact? It depends on the artifact
c
pretty much yeah. like i typically do two things on maven.google.com often
1. lookup what versions of the dep exist. like so
2. lookup what artifacts are available under a group
j
Well, if it's a Google library I use maven.google.com If it's hosted on central (ie most everything else), I use central search central.sonatype.org If I don't know where it comes from, mvnrepository.com is an OK backup since it indexes a bunch of repositories
a
@Colton Idle what kind of stuff do you want to look up? just curious cause I had the same thing but to understand whether something was part of Jetpack Compose or CMP
c
my question is essentially "maven.google.com is really good and fast and light weight and im able to answer all of my questions about dependencies easily (that come from google maven)" but i dont know what is the best lookup for mavenCentral since there seem to be a few websites that seem official. but they all are kinda bad IMO (slow, hard to understand what artifacts exist in the group, etc)
@Jack Boswell thanks for sharing central.sonatype.org it looks like i actually want the .com variant of that domain though?
so am i an idiot. how do i find all of the artifact in the okhttp3 group? https://central.sonatype.com/artifact/com.squareup.okhttp3/okhttp/overview
j
Yeah that's the one, my bad I'm usually on .org for publishing docs 😅
❤️ 1
The mvnrepository link before already had all artifacts, but on mavencentral you can click the organization chip and it'll take you here https://central.sonatype.com/namespace/com.squareup.okhttp3
c
ah. the "organization" chip is the "group"
j
That's the one
c
thanks okay. yeah i guess i didn't know the "official" source here. i definitely wasn't going to central.sonatype.com. honestly its still a bit slow for my liking. but maybe thats because im used to maven.google.com. its perfect 😂
j
You can browse the directory structure of mavencentral if you prefer, but I think you'll see pretty quick why maven.google.com doesn't scale to the size of central 😛 https://repo1.maven.org/maven2/
c
thanks. ill have to bookmark repo1 as well lol. that actually seems really helpful too. thanks for teaching
🐕 1
e
search.maven.org could be considered "official", it's the same infrastructure as central. it used to be something else but has been switched to redirect to sonatype search for maybe a year now
❤️ 1
☝️ 1
repo1 is mavenCentral()
today i learned 1
well ok it's a different URL that's hard coded into Gradle but after a redirect that's what it is https://docs.gradle.org/current/javadoc/constant-values.html#org.gradle.api.artifacts.ArtifactRepositoryContainer.MAVEN_CENTRAL_URL
similarly maven.google redirects to a content distribution network https://dl.google.com/dl/android/maven2/ for everything other than that basic web ui
today i learned 1