Skip to content
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 to MavenCentral #8

Open
LeoColman opened this issue Dec 23, 2023 · 2 comments
Open

Publish to MavenCentral #8

LeoColman opened this issue Dec 23, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@LeoColman
Copy link
Contributor

Jitpack is awesome, but Maven Central is more usual for Kotlin users (we use it instead of Jitpack, for instance :P)

The process is easier than it looks. It requires proving domain ownership on a Jira ticket and uploading artifacts to a different repository.

I can help with the account setup and the repository adaptations if needed.
A pet project of mine is published to Maven Central and it's very simple, so it can be used as a guide if one is needed: https://github.com/LeoColman/SimpleCpfValidator

@LeoColman LeoColman added the enhancement New feature or request label Dec 23, 2023
@DadiBit
Copy link
Member

DadiBit commented Dec 24, 2023

Hi! Firstly, thank you again for the PRs.

I have no idea on how to publish on maven, but I would love to do it (perhaps the project needs some revival before that, tho). I do not have access to the domain configuration, but just like jitpack's custom domain (com.open-meteo.*) I asked Patrick Zippenfenig for collaboration and everything worked out smoothly.

We actually have the option to rename the package by shifting publishing channel, should we? Let me know wdyt 😃

@LeoColman
Copy link
Contributor Author

Great! Good to know Patrick will be there when we need them :D

https://dev.to/julbrs/beginner-guide-to-maven-central-publishing-3jio

I think this tutorial summarizes a good start:

  • create a JIRA account here
  • Create a new issue using this template.

After this we can setup the project to publish in Sonatype's format, which involves including KotlinDocs (Dokka).

We actually have the option to rename the package by shifting publishing channel, should we? Let me know wdyt 😃

The current group is com.open-meteo and current artifact is open-meteo-api-kotlin.

Java seems to be published to Maven Central as com.open-meteo:sdk:1.4.0. I vote for keeping the group as com.open-meteo but changing the artifact to kotlin-sdk or sdk-kotlin

Python seems to publish to Pip as openmeteo-sdk. Python doesn't have a group level, I think.

Typescript seems to be publishing as openmeteo plain and simple.

@DadiBit DadiBit added this to the Release 1.0.0 milestone Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants