https://github.com/pine/heroku-addons
:mag: Heroku add-ons utilities.
https://github.com/pine/heroku-addons
heroku java
Last synced: 29 days ago
JSON representation
:mag: Heroku add-ons utilities.
- Host: GitHub
- URL: https://github.com/pine/heroku-addons
- Owner: pine
- License: mit
- Archived: true
- Created: 2019-05-18T09:51:25.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T07:23:22.000Z (almost 3 years ago)
- Last Synced: 2025-09-20T20:48:29.073Z (5 months ago)
- Topics: heroku, java
- Language: Java
- Homepage: https://mvnrepository.com/artifact/moe.pine/heroku-addons
- Size: 1.4 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# heroku-addons
[](https://github.com/pine/heroku-addons/actions/workflows/build.yml)
[](https://codecov.io/gh/pine/heroku-addons)
[](https://mvnrepository.com/artifact/moe.pine/heroku-addons)
[](https://javadoc.io/doc/moe.pine/heroku-addons)
> :mag: Heroku add-ons utilities.

© 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)