Kord-Extensions / kord-extensions

Kord extensions framework, providing commands and distinct units of functionality
https://kordex.dev
European Union Public License 1.2
110 stars 27 forks source link

Make commit hash available to use in code #328

Closed gdude2002 closed 4 weeks ago

gdude2002 commented 4 weeks ago

Discussed in https://github.com/orgs/Kord-Extensions/discussions/7

Originally posted by **Galarzaa90** August 26, 2024 ### Components Kord Extensions (Core) ### Summary Make the commit hash of the build be saved to the kordex properties file so it can be accessed when adding Kordex as a dependency. It would also make sense to make it part of the boot message: ``` Starting bot with Kord Extensions v2.2.0-SNAPSHOT (5ac9d59) and Kord v0.15.0-SNAPSHOT ``` ### Current Behaviour _No response_ ### Target Behaviour Since the use of SNAPSHOT builds is the "cannonical" way of using Kordex and Kord. Sometimes it is hard to tell if the snapshot version used is up to date, specially with the caching mechanisms used for dependencies. Being able to easily read this would be very helpful so we can know exactly which snapshot build we are using. ### Implementation Tips _No response_
gdude2002 commented 4 weeks ago

Starting bot with Kord Extensions v2.2.1-SNAPSHOT (root@e42dde891) and Kord v0.15.0-SNAPSHOT