linkedin / URL-Detector

A Java library to detect and normalize URLs in text
783 stars 186 forks source link

Using URL-Detector with Maven: jitpack stopgap #8

Closed igorbrigadir closed 8 years ago

igorbrigadir commented 8 years ago

While #6 and #2 is still being resolved, as a temporary workaround, you can use Jitpack:

add:

...

<repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

....

<dependency>
        <groupId>com.github.linkedin</groupId>
        <artifactId>URL-Detector</artifactId>
        <version>2a0fede05e</version>
    </dependency>

to your pom.xml.

pmonks commented 8 years ago

Ooooh that's nice - is this a URL-Detector issue though? Seems more like a comment on issue #2 and/or issue #6.

Also, do you know if there's an equivalent for Leiningen (the build tool I'm using)?

igorbrigadir commented 8 years ago

Ah yeah, should have commented instead of creating a new issue.

Looks like Jitpack should work with leiningen too: https://github.com/jitpack/jitpack.io/blob/master/BUILDING.md#leiningen-projects

pmonks commented 8 years ago

Yeah I saw that Jitpack can build Leiningen projects, but I was wondering whether it can be leveraged from within a Leiningen project, to consume projects on Github?

[EDIT] thanks @igorbrigadir - the link you posted above answers my question (when will I learn to RTFM properly and not skim it??).

tzuhanjan commented 8 years ago

Thanks for the suggestion for Jitpack. It's a pretty cool tool. #2 is now resolved, as is this since it's now on Maven.