Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pine/heroku-addons

:mag: Heroku add-ons utilities.
https://github.com/pine/heroku-addons

heroku java

Last synced: 26 days ago
JSON representation

:mag: Heroku add-ons utilities.

Awesome Lists containing this project

README

        

# heroku-addons
[![build](https://github.com/pine/heroku-addons/actions/workflows/build.yml/badge.svg)](https://github.com/pine/heroku-addons/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/pine/heroku-addons/branch/master/graph/badge.svg)](https://codecov.io/gh/pine/heroku-addons)
[![Maven Central](https://img.shields.io/maven-central/v/moe.pine/heroku-addons)](https://mvnrepository.com/artifact/moe.pine/heroku-addons)
[![javadoc](https://javadoc.io/badge2/moe.pine/heroku-addons/javadoc.svg)](https://javadoc.io/doc/moe.pine/heroku-addons)

> :mag: Heroku add-ons utilities.

![](images/resized.jpg)

© Leung Cho Pan/123RF.COM



## Requirements

- Java 8 or later
- Android Java has not been supported, because the add-on is for server apps on Heroku

## Getting started
The library is published to [Maven Central](https://search.maven.org/artifact/moe.pine/heroku-addons). Please replace `$latest_version` below with the actual version.

```gradle
repositories {
mavenCentral()
}

depepdencies {
implementation "moe.pine:heroku-addons:$latest_version"
}
```

### Notes on the old versions
The old versions `< 0.3.2` had been published to jcenter, but jcenter is [scheduled to end](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/).

Please use the newer versions that are published to Maven Central.

## Supported add-ons
Don' you find what you need? We look forward to your contribution :smile:

- [Heroku Redis](https://elements.heroku.com/addons/heroku-redis)
- [JawsDB MySQL](https://elements.heroku.com/addons/jawsdb)
- [JawsDB Maria](https://elements.heroku.com/addons/jawsdb-maria)

## Usage
If you want to use [Heroku Redis](https://elements.heroku.com/addons/heroku-redis) add-on, please use the code as following.

```java
import moe.pine.heroku.addons.HerokuRedis;

final HerokuRedis redis = HerokuRedis.get();
if (redis != null) {
System.out.println("Host : " + redis.getHost());
System.out.println("Password : " + redis.getPassword());
System.out.println("Port : " + redis.getPort());
}
```

## Development
### Test

```
$ ./gradlew clean test
```

### Upload Maven Central

```
$ ./gradlew clean publish
```

## License
MIT © [Pine Mizune](https://profile.pine.moe)