Skip to content

Commit

Permalink
some work around #93
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed May 18, 2021
1 parent 6b73dfc commit 8c5bc59
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
18 changes: 18 additions & 0 deletions buildSrc/README.md
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`
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/AppInfo.kt
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"
}
8 changes: 8 additions & 0 deletions db-migrations/README.md
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

0 comments on commit 8c5bc59

Please sign in to comment.