AquaticMasteryProductions / Robinhood-Api-Java

Java Wrapper for the Robinhood Investing App/Service
MIT License
3 stars 4 forks source link

Add packaged JAR to Maven Central Repository #4

Open albanoj2 opened 6 years ago

albanoj2 commented 6 years ago

Currently, the JAR generated by this project must be manually copied onto the classpath or added as a local dependency in a Maven or Gradle project. In order to reduce the overhead needed to use this API implementation, the Gradle build script (build.gradle) should include a step that allows for the built and packaged JAR to be deployed to Maven Central.

This will allow for both Maven and Gradle applications to add a compile dependency to this API implementation and removing the need for transient dependencies to be manually added to an end user's application. For example, an end user would be able to add a dependency such as the following to their project:

<dependency>
    <groupId>com.ampro.robinhood</groupId>
    <artifactId>robinhood-api</artifactId>
    <version>0.8.2</version>
</dependency>

In order to accomplish this, the Maven Publish Plugin for Gradle should be used.

JonoAugustine commented 6 years ago

We've been putting off gradle/maven repo (b/c I'm lazy and didn't figure it out). Your suggestion(s) are all good, if I don't get to it soon feel free to make a pull request.

edit: See the latest commit, working on it. Though we will likely rely on jitpack.io for a little while longer