jsonschemafriend icon indicating copy to clipboard operation
jsonschemafriend copied to clipboard

Maven Central

Open edrevo opened this issue 3 years ago • 2 comments

Many thanks for open sourcing this great library! Would you consider uploading it to Maven Central? I can't add jitpack as a maven repository in some of the projects I'd like to use this lib, unfortunately.

edrevo avatar Mar 11 '22 11:03 edrevo

I would consider it but it'll have to go on the to do list because I've a bit of a backlog and haven't uploaded anything there before.

jimblackler avatar Mar 11 '22 13:03 jimblackler

I can help you with the setup. Ping me.

You will need:

  • An account on sonatype (Nexus: https://oss.sonatype.org, Jira: https://issues.sonatype.org/ -- it is the same login)
  • With the ownership of a groupId
  • You also need to sign your artifacts, which requires some GPG setup.

From a build point of view:

  • you will need following plugins:
    • id 'signing' to sign your artifacts
    • id 'io.github.gradle-nexus.publish-plugin' to manage the publication on sonatype
  • Optionally:
    • I am also using id 'net.researchgate.release' to change the version (management of -SNAPSHOT suffix) and tag the version
  • I did not do a complete review, but some other
    • version management: in a lot of project the version is a.b.c-SNAPSHOT while you develop. Maybe it is not compatible with jitpack. And it it is changed too a.b.c when you create the release. And then it is bumped to a.b.(c+1)-SNAPSHOT to work on the next version.
    • some changes to the generated pom to add some required sections.

Ping me if you need more details. There are also tons of tutorials on the web.


What you could also consider is joining an existing organization like the one I am participating to: https://github.com/OpenAPITools (I did not ask if this would be possible, In my opinion OpenAPI and JSON-Schema are related topics). All the administrative tasks are already solved and you would join an helpful community. But I can understand that you prefer keeping full ownership on your project. (I also have the setup to publish on maven central my own side projects -- not shared with the community)

jmini avatar May 17 '22 03:05 jmini