question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

petitparser on maven central

See original GitHub issue

I know that #5 has been closed because of jitpack deployment but I would really like that you reconsider to publish the library on maven central.

Like you I provide some OSS libraries ; one of them is jgitver which consist of 3 projects:

  • a library jar using java-petitparser; built with maven
  • a maven plugin as a core maven extension; built with maven
  • a gradle plugin; built with gradle

The problem of jitpack, is as being a non standard repository, end users of plugins/libs have to declare in their build tool the usage of jitpack even if they just use ‘plugins’ and not directly your library.

This means for jgitver plugins that jitpack has to be present not just in the standard dependencies scope but also in the plugin dependencies scope:

  • thus a specific pluginRepositories setting for maven
  • a specific buildscript>repositories setting for gradle

Having java-petitparser in central would just be transparent for any one using it anywhere in anytool.

Like many others I personally publish to central via sonatype. If you follow the instructions there (https://central.sonatype.org/pages/ossrh-guide.html) it is a no brainer.

Without a deployment to central, I see only 2 possibilities for me:

  1. refactor to remove the usage of java-petitparser
  2. fork, relocate under fr.brouillard.oss, and publish to central so that it is available out of the box as a resolvable dependency in maven & gradle.

I am going to do 2. right now otherwise I cannot publish my latest version of the gradle plugin but I would really prefer to avoid any of the 2 mentioned possibilities.

Thanks for your understanding.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rengglicommented, Nov 7, 2018

Thank you for your help and your pushing on getting it there 👍

0reactions
McFoggycommented, Nov 6, 2018

no perfect, your lib is on central

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.github.petitparser - Maven Repository
1. GitHub PetitParser Java PetitParser9 usages · 2. PetitParser Core7 usages · 3. Java PetitParser · 4. PetitParser JSON · 5. PetitParser ·...
Read more >
Missing artifact on Maven Central · Issue #5 - GitHub
The easy part is to create a JIRA account at Sonatype and a new project ticket [1] for com.github.petitparser . You later need...
Read more >
PetitParser - javalibs
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.
Read more >
fr.brouillard.oss : jgitver : 0.7.0 - Maven Central Repository ...
GIT versioning using jgit · org.eclipse.jgit:org.eclipse.jgit · com.github.petitparser.java-petitparser:petitparser-core · junit:junit · org.hamcrest:java-hamcrest ...
Read more >
Download petitparser-core JAR 2.2.0 With all dependencies!
Download petitparser-core JAR 2.2.0 ✓ Free ✓ With dependencies ✓ Source of ... JAR search and dependency download from the Maven repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found