Slackbot
12/05/2023, 3:36 PMThomas Broyer
12/05/2023, 3:44 PMossrhSnapshots to begin with.Vampire
12/05/2023, 3:44 PMEli Graber
12/05/2023, 3:46 PMEli Graber
12/05/2023, 3:47 PMThomas Broyer
12/05/2023, 3:47 PMThomas Broyer
12/05/2023, 3:48 PMVampire
12/05/2023, 3:48 PMboth s01 and the legacy URLsIt is not
s01 for all newer ones, it can vary.
And what Thomas saidEli Graber
12/05/2023, 3:57 PMpluginManagement block, which is why I think it would be nice if it were part of Gradle.
Using an init script seems like overkill for this, and isn't practical for me to use across many different environments that my projects are built in.
Central does not host snapshots, only releases.
I've usually seen the OSSRH repos colloquially referred to as maven central snapshots, but for the sake of correctness I'd be ok with the function being called
ossrhSnapshots π
Vampire
12/05/2023, 4:05 PMpluginManagement repositories?
The only case where this should not work is for settings plugins as for those it would be too late to configure it from a settings plugin naturally.Eli Graber
12/05/2023, 4:09 PMwhy should a convention settings plugin not be able to define pluginManagement repositories
Hmm I never thought about adding the repositories manually. My convention plugin exposes a
mavenCentralSnapshots function but I can't use it in the pluginManagement block.
But as you said that wouldn't help for settings pluginEli Graber
12/05/2023, 4:12 PMIt is really up to each project to document how to get hold of snapshot builds
This may be true, but that wouldn't really help my scenario, because I'd still have to context switch and go to that project's readme, etc... and get the URL. I don't think I've ever used a snapshot build that didn't come from OSSRH. I think it's ubiquitous enough to deserve a shortcut like
mavenCentral, but maybe that's just me Β―\_(γ)_/Β―Vampire
12/05/2023, 4:14 PMjitpack() (thank god they didn't π)Eli Graber
12/05/2023, 4:15 PMVampire
12/05/2023, 4:15 PMVampire
12/05/2023, 4:17 PMmavenContent { snapshotsOnly() }, that's merely an optimization. But you should only find snapshot builds there anyway.Martin
12/05/2023, 4:18 PMMartin
12/05/2023, 4:18 PMossrhSnapshots()Vampire
12/05/2023, 4:19 PMjitpack() was not added. πMartin
12/05/2023, 4:19 PMJavi
12/05/2023, 4:20 PMgoogle().
I donβt think it is necessary to add all urls, the base one fetch all s01 and so on, and if not, we should ask sonatype for thisEli Graber
12/05/2023, 4:21 PMJavi
12/05/2023, 4:21 PMVampire
12/05/2023, 4:22 PMVampire
12/05/2023, 4:22 PMI would add it tooYou maybe, I not, and Gradle not for various very good reasons. π See https://github.com/gradle/gradle/issues/16310
Javi
12/05/2023, 4:25 PMif can do a build unreproducibleThomas Broyer
12/05/2023, 4:27 PMI think publishing snapshots to the sonatype snapshot repository is as standard as mavenCentral for most people.As said (linked) above, Apache and JBoss/RedHat at least don't publish their snapshots to OSSRH. Others do publish to OSSRH but not in the common/shared repositories (e.g. Jetty, Plexus, Vaadin)
Javi
12/05/2023, 4:30 PMVampire
12/05/2023, 4:31 PMEli Graber
12/05/2023, 4:31 PMVampire
12/05/2023, 4:31 PMJavi
12/05/2023, 4:32 PMJavi
12/05/2023, 4:32 PMVampire
12/05/2023, 4:33 PMVampire
12/05/2023, 4:33 PMVampire
12/05/2023, 4:33 PMEli Graber
12/05/2023, 4:34 PMs01 parameterJavi
12/05/2023, 4:34 PMVampire
12/05/2023, 4:35 PMEli Graber
12/05/2023, 4:35 PMVampire
12/05/2023, 4:35 PMJavi
12/05/2023, 4:36 PMpublic fun RepositoryHandler.sonatypeSnapshot(action: MavenArtifactRepository.() -> Unit = {}) {
maven("<https://oss.sonatype.org/content/repositories/snapshots>", action)
}Vampire
12/05/2023, 4:37 PM@Vampire was that sarcastic thenNot really sarcasm. If JitPack would be added due to popularity, OSSRH snapshots should be considered too. Both are only really usable for snapshots.
Javi
12/05/2023, 4:37 PMMavenCentralVampire
12/05/2023, 4:38 PMJavi
12/05/2023, 4:52 PMVampire
12/05/2023, 4:54 PM