Bintray shutdown : cheap alternative with Google App Engine
Since Bintray shut down in 2021, numerous OSS projects have been annoyed with the lack of availability from Maven repository hosting solutions. Of course Sonatype – Maven central exists but to the price of a long, annoying, and cumbersome uploading process. I still maintain several maven Java libraries and some are hosted on Maven central ( because I consider them as original work) and some are simple forks. For the latter one, I want to host my own repository.
Bintray shut down
JFrog has announced that they are shutting down the Bintray hosting service, which includes the popular JCenter hosting service for Java artifacts, as well as GoCenter (which hosted Go packages) and ChartCenter (which hosted Helm charts).
On May 1, 2021, the sunset will impact all existing Bintray users. Bintray users will be blocked and will no longer be able to use the Bintray service.
Possible alternatives
Several alternatives exist now, but often not free like Bintray was before.
Self-hosted: Sonatype Nexus OSS
Self-hosted: Artifactory
Self-hosted: Web server (Apache, NGINX)
SAAS: Cloudsmith
SAAS: Packagecloud
SAAS: Maven central with Sonatype
Self-hosed/SAAS: Gitlab repositories
Indeed, we have several solutions however it comes with several drawbacks :
Self-hosted solutions Maven repository based on Nexus or JFrog
The solutions are extremely expensive to host on GCP or AWS, they suck RAM like a newborn baby his milk.
You may try to find another Cloud provider offering 2Go+RAM for your instance, but still, it’s expensive.
You will have to maintain a tightened security configuration of Nexus or JFrog, and I think you don’t want to spend time on it.
Well, it seems overkill for two maven libraries…
Self-hosted solution based on Webserver
Dead easy to set up, a simple light compute instance + persistent disk
Drawback: it does not handle maven artifact uploading. You need to set up WebDAV or an FTP or an SSH tunnel. And I personally hate Maven wagons.
SAAS Offers you lost all the history from your repositories on Bintray and you would put your trust into another Artifact repository management solution with a mix of premium and free services? No way. Bintray was the biggest one and they fail.
Maven Central + Sonatype
if you think your work is good enough and is not a fork from another original work, let’s upload on Maven central after a long tiring and cumbersome process. But I won’t recommend going through these steps if you are often working on a fork from an original work and for some reason, they do not integrate your modifications. You will duplicate the maven artifactID in Maven central and mvnrepository.com and just for this it is a bad idea.
My solution is originally taken from Renaud Cerrato
Finally, I was in the favor of a simple Webserver solution with uploading ability. I also wanted something almost static to decrease to the maximum the operational costs and if possible stored into persistence storage like S3 or Google Cloud Storage.