Vivien Mahé
02/23/2024, 10:52 AMRobert Jaros
02/23/2024, 11:03 AMJilles van Gurp
02/23/2024, 11:04 AMRobert Jaros
02/23/2024, 11:11 AMVivien Mahé
02/23/2024, 11:12 AMVivien Mahé
02/23/2024, 11:14 AMVivien Mahé
02/23/2024, 11:19 AMsuresh
02/23/2024, 11:36 PM) and only the new method (Publishing Portal) is available for new namespaces.@Robert Jaros I have a namespace created around few years back and they migrated it to new publishing portal immediately after sending an email to
<mailto:central-support@sonatype.com|central-support@sonatype.com>
, which now works with nmcp plugin.Jilles van Gurp
02/26/2024, 11:00 AMconfigure<PublishingExtension> {
repositories {
maven {
// GOOGLE_APPLICATION_CREDENTIALS env var must be set for this to work
// public repository is at <https://maven.tryformation.com/releases>
url = uri("<gcs://mvn-public-tryformation/releases>")
name = "FormationPublic"
}
}
}
And that's it. You need gcloud setup and some credentials that allow you to access your bucket. There's a github action as well that sets that up where you just add your credentials as a secret in your repo. We have both private and external repos.
We also have our load balancer setup to serve files from our bucket via Google's CDN. This enables https for your users. But for a private, internal repository, you can just stick to buckets.
Amazon has similar features except of course you would use s3. Both are supported out of the box with gradle if you have the sdks installed.
SSH is even more simple. All you need is ssh access to some server and set up your public key and it will work. If the remote server has a webserver running, others can of course use https. Super easy to setup.Vivien Mahé
02/26/2024, 12:08 PMJilles van Gurp
02/26/2024, 12:50 PMsuresh
02/26/2024, 4:24 PMJilles van Gurp
02/26/2024, 4:45 PMCharlie Tapping
03/04/2024, 10:43 AM