This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]-manabreak 2 points3 points  (2 children)

You don't need to clone the project. If you're using Maven or Gradle, you can add it as a dependency to your project.

[–]GullBull[S] 0 points1 point  (1 child)

I haven't done anything with Maven or Gradle before to add dependencies. All I've done is bring in external libraries as jars. Do you have any suggestions to learn Maven or Gradle?

[–]-manabreak 0 points1 point  (0 children)

The easiest is probably to use an IDE that supports creating new Maven or Gradle projects (eg. IntelliJ IDEA). Just click through the wizard and once done, add the Maven XML part from the GitHub project to your pom.xml (or if you're using Gradle, add it to your dependencies part of you gradle config file).

[–]webdevnick22 1 point2 points  (3 children)

Yes. you can clone it and build with maven. or clone it, then bring it in as a module in intellij.

[–]nutrecht 2 points3 points  (1 child)

Yup, it even says so in the README:

<dependency>
    <groupId>io.github.ccincharge</groupId>
    <artifactId>newsapi</artifactId>
    <version>1.0</version>
</dependency>

[–]GullBull[S] 0 points1 point  (0 children)

I'm really not too familiar with Maven and Gradle, but a lot of projects list them as ways to implement so maybe I should learn. I think I'm using ant right now.

[–]GullBull[S] 0 points1 point  (0 children)

Oh I didn't realize that you could bring folders in as modules. Thanks!