Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pine/heroku-addons
- Owner: pine
- License: mit
- Created: 2019-05-18T09:51:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T07:23:22.000Z (over 1 year ago)
- Last Synced: 2024-04-15T15:34:29.361Z (7 months ago)
- Topics: heroku, java
- Language: Java
- Homepage: https://mvnrepository.com/artifact/moe.pine/heroku-addons
- Size: 1.4 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)