-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish packages in Maven Central #32
Comments
Sure that would be great, thanks! |
The thing to keep in mind here is that someone needs to own and responsibly manage, and possibly in the future share with other maintainers, the PGP private key for deploying into |
We can generate a new PGP key, only for deployment to Maven Central, and store the private key in the project's secret variables. |
Worth to note: For compatibility reasons we may prefer to stay with So, to publish To mitigate the problem with duplicated artifacts in the classpath, we can release a new dummy (.jar without any .class files) version of the |
To summarize, migrating libraries from JitPack (which may not be so reliable) to Maven Central will require a change in the groupId. The proposed changes are outlined in the table below:
As mentioned earlier, we can simplify the migration by redirecting JitPack artifacts to Maven Central ones using an empty artifact with a dependency, e.g., redirecting However, implementing this change will require a decision at a higher project level. |
The publishing to maven central topic has happened several times before (#7 #6).
Why this proposal again?
Libraries that are in Maven Central cannot have dependencies on libraries in other repositories (like JitPack).
So if any library located in Maven Central wants to use
java-multibase
then it simply cannot.So, I propose to publish library to the Maven Central.
I did such publishing myself some time ago and the process turns out to be simple.
Of course I want to support with that, I can create an action on GitHub with the deployment (just a few simple steps in the .yml file) and show how it works on my forked repo.
What do you think?
The text was updated successfully, but these errors were encountered: