GithubHelp home page GithubHelp logo

Comments (11)

clun avatar clun commented on May 23, 2024

+1 your library will be more visible in Maven Central.

You already have a pull request available to mavenize everything. Now I really to not know how I can easy use it in my OSS project I don't want to "copy" or fork you work, still I need to publish.

Let us know is you need some backup to publish to the central. I did all the process with FF4J.

from jcolor.

dialex avatar dialex commented on May 23, 2024

I'm so sorry for the delay. Just to let you need that I started today publishing this library to Maven and Gradle. I'll let you know if I need your assistance. I will also look at the current pull requests. It's the first time I do this 😜

from jcolor.

dialex avatar dialex commented on May 23, 2024

@renatoathaydes @clun
Have you heard of JitPack? @xafero mentioned it on his pull request, and it looks a lot easier than using maven central. Thoughts?

from jcolor.

renatoathaydes avatar renatoathaydes commented on May 23, 2024

@dialex JitPack works only with GitHub projects... it's not a centralized binaries repository in the sense that it does not distribute binaries, it just checks out source using git then builds it and adds it as a project dependency (a lot of projects cannot be built without some setup, so this is not ideal for all projects).

It works in some cases, but to make it easy for any Java developer to use this project, it should be on Maven Central in my opinion (so it works with any Java build tool).

As I said before, I would advise you to start by adding the project to JCenter (which will already make it much easier to use it), which is very simple from the Bintray website... once you've done that, if you have the patience to request a groupId you can use to publish to Maven Central with Sonatype, then Bintray will be able to automatically publish it for you on Maven Central.

from jcolor.

dialex avatar dialex commented on May 23, 2024

I published this repo on Maven Central at http://repo1.maven.org/maven2/com/diogonunes/JCDP/
You can also search for it at http://search.maven.org/

However, I tried adding a dependency on my pom.xml, but my IDE (IntelliJ) could not find the source. See below:
screen shot 2016-09-20 at 20 01 33

I also went to the IDE configurations, Maven > Repositories and updated the repo (for some reason it was never updated). But that didn't solve the issue either.
screen shot 2016-09-20 at 20 27 33

However when I went to the project's libraries, the IDE was able to find it and add it as a dependency. But the pom.xml was not changed.
screen shot 2016-09-21 at 09 23 34

@renatoathaydes @clun
What should I place on the pom so that everyone is able to download the library?

from jcolor.

dialex avatar dialex commented on May 23, 2024

Looks like its done! Somehow.

Apparently when searching for JCDP, IntelliJ doesn't find it, but if I search for diogo it does... because reasons.

I'm planning to release this big update (v2.0) this next weekend. Thanks for your patience.

from jcolor.

renatoathaydes avatar renatoathaydes commented on May 23, 2024

It was probably that the IntelliJ index does not update for a while. I checked your artifacts in Maven Central and they seem to be correct, except for this:

<name>${project.groupId}:${project.artifactId}</name>

from jcolor.

renatoathaydes avatar renatoathaydes commented on May 23, 2024

Oh, it seems that your dependency on Hamcrest is not scoped as test. Is Hamcrest used by the library?

from jcolor.

dialex avatar dialex commented on May 23, 2024

Regarding <name>${project.groupId}:${project.artifactId}</name>... I copied that from a Maven tutorial. Is uses the variables of the POM itself. So far it worked, why do you say it is wrong?

Regarding Hamcrest... I think you're right, the library doesn't use it, it's just for testing purposes. How do I mark it as test only?

from jcolor.

renatoathaydes avatar renatoathaydes commented on May 23, 2024

like this: https://github.com/dialex/JCDP/blob/master/pom.xml#L139

from jcolor.

dialex avatar dialex commented on May 23, 2024

Thanks @renatoathaydes, I fixed it on v2.0.1 (also released on Maven Central).
Let me know if you guys find any new issues.

I also added some fancy Shields to this repo, namely Travis CI.
So now changes are reviewed by the unit tests (and code analysis, via Codacy) 😀🎉

from jcolor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.