discord-diabetes / diabot

A diabetes-oriented chatbot for Discord
https://discord.gg/diabetes
Other
21 stars 13 forks source link

Refactor into separate projects #114

Closed p5nbTgip0r closed 4 years ago

p5nbTgip0r commented 4 years ago

Currently Diabot consists of one project with all of the code inside of it, making it awkward to include as a dependency for other projects if, for example, just the BG conversion utilities or the Nightscout API is needed. This PR aims to fix that by splitting Diabot into three projects:

With splitting the single project into subprojects, I also cleaned up the build.gradle a bit:

The stage task for Heroku was kept in the root build.gradle and will still output a jar to build/libs/diabot.jar. Configuration for the shadow plugin/jar output is in the shadowJar closure.

Lastly, the Gradle wrapper was changed to use a -all distribution as it provides IntelliJ with Gradle API/DSL documentation.