-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Build Sources | ||
|
||
> This module included into gradle build files, so it has utilities such dependencies constants, dependencies versions, project modules and custom plugins. <br> | ||
> Btw I like this solution for dependencies instead introduced in gradle 7.0 version catalogs etc. | ||
## Structure | ||
|
||
All kinds of shortcuts is unpackaged (including due to imports doesn't work in `plugins` block): | ||
|
||
[AppInfo](https://github.com/y9san9/prizebot/blob/dev/buildSrc/src/main/kotlin/AppInfo.kt) - basic application info <br> | ||
[Dependencies](https://github.com/y9san9/prizebot/blob/dev/buildSrc/src/main/kotlin/Dependencies.kt) - dependencies string constants<br> | ||
[Version](https://github.com/y9san9/prizebot/blob/dev/buildSrc/src/main/kotlin/Version.kt) - all kinds of versions extracted here <br> | ||
[Plugins](https://github.com/y9san9/prizebot/blob/dev/buildSrc/src/main/kotlin/Plugins.kt) - gradle plugins string constants <br> | ||
[Modules](https://github.com/y9san9/prizebot/blob/dev/buildSrc/src/main/kotlin/Modules.kt) - project modules shortcuts | ||
|
||
Otherwise, plugins are packaged: | ||
|
||
[Deploy](https://github.com/y9san9/prizebot/blob/dev/buildSrc/src/main/kotlin/me/y9san9/deploy/Deploy.kt) - plugin for convenient deployment bot to server via ssh with `systemctl restart` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
object AppInfo { | ||
const val PACKAGE = "me.y9san9.prizebot" | ||
const val VERSION = "1.1-beta" | ||
const val VERSION = "2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# DB Migrations | ||
> **Note**: This is module with migrations implementation, for actual migrations see [it](https://github.com/y9san9/prizebot/tree/dev/bot/src/main/kotlin/me/y9san9/prizebot/database/migrations) | ||
## Structure | ||
|
||
The migrations are designed with [MigrationsApplier](https://github.com/y9san9/prizebot/blob/dev/db-migrations/src/main/kotlin/me/y9san9/db/migrations/MigrationsApplier.kt) as main entity. It performs all migrations in recursion-way (because personally I hate cycles and immutable state) | ||
|
||
[MigrationsStorage](https://github.com/y9san9/prizebot/blob/dev/db-migrations/src/main/kotlin/me/y9san9/db/migrations/MigrationsStorage.kt) is a simple set-get table model for tracking schema version |