Skip to content

Commit

Permalink
💄 Cleanup + add plugins versions & update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
epiard13 committed Mar 11, 2021
1 parent b524157 commit 05a1d5b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
25 changes: 1 addition & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,7 @@ your [Reloadly APIs credentials][api-credentials-help].

To run the SDK you will need **Java 1.8+**

## Using the SDK

### Gradle users

Add the dependencies to your project's build file:

```groovy
implementation "software.reloadly:java-sdk:1.0.0"
```

### Maven users

Add this dependency to your project's POM:

```xml

<dependency>
<groupId>software.reloadly</groupId>
<artifactId>java-sdk</artifactId>
<version>1.0.0</version>
</dependency>
```

### Alternatives
## Using the SDK Modules

The SDK is made up of several modules such as **Authentication, Airtime, etc...**, you can alternatively add
dependencies for the specific services you use only. For example : Authentication & Airtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public ServiceAPI(String clientId, String clientSecret, String accessToken,
/**
* Retrieve a new API access token to use on new calls.
* This is useful when the token is about to expire or already has.
*
* @param request - The request to refresh the token for
* @throws ReloadlyException - Error captured when executing an http request to the Reloadly Server
*/
public abstract void refreshAccessToken(Request<?> request) throws ReloadlyException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class ProxyOptions {
/**
* Builds a new instance using the given Proxy.
* The Proxy will not have authentication unless {@link #basicAuthentication} is set.
*
* @param proxy - The proxy setting
*/
public ProxyOptions(Proxy proxy) {
Asserter.assertNotNull(proxy, "proxy");
Expand Down
11 changes: 10 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<scm>
<connection>scm:git:https://github.com/reloadly/reloadly-sdk-java.git</connection>
<developerConnection>scm:git:[email protected]:reloadly/reloadly-sdk-java.git</developerConnection>
<url>https://github.com/reloadly/reloadly-sdk-java</url>
<url>https://github.com/reloadly/reloadly-sdk-java/tree/main</url>
</scm>

<properties>
Expand All @@ -57,11 +57,15 @@
<maven.compiler.target>1.8</maven.compiler.target>
<commons-codec.version>1.15</commons-codec.version>
<junit-jupiter.version>5.7.1</junit-jupiter.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<jackson-databind.version>2.12.1</jackson-databind.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<google-code-findbugs-annotations.version>3.0.1</google-code-findbugs-annotations.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -100,6 +104,11 @@
<artifactId>maven-model</artifactId>
<version>${maven-model.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>${google-code-findbugs-annotations.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
Expand Down

0 comments on commit 05a1d5b

Please sign in to comment.