Why does the `mavenCentral()` shortcut do not incl...
# community-support
p
Why does the
mavenCentral()
shortcut do not include
mavenContent { releasesOnly() }
? The central portal only supports releases enforced by sonatype.
👍 4
v
The fact that central only supports release renders
releasesOnly
kind of moot actually. These content filter are more designed for filtering of repositories which could have both types, to avoid looking for snapshots when you don't want them
p
I don't think
releaseOnly
is useless in general to avoid network traffic, but
mavenCentral
should contain this setting by default. There are other repos that could only contain releases/snapshots only, like internal mirrors.
j
The new maven central actually supports snapshots ... but you have to opt into it and it doesn't show by default when you search. The url for it is:
<https://central.sonatype.com/repository/maven-snapshots/>
p
It’s another repo.
v
Oh, did they change that? The snapshot repository for the old OSSRH way was never meant to be public snapshots but only for testing things yourself before you release them finally, it was just "abused" by everyone. And the last statement I had seen was that with the new way through the publisher portal they do not support public snapshots anymore, but just using them with login or something like that. Would be nice if they changed mind.
👍 1
Yes, they changed it beginning of 2025, great. 🥳