diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-02-23 19:37:39 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-02-23 19:37:39 +0900 |
| commit | 265b668a91e944d90d5e4654f2e9af85188c5135 (patch) | |
| tree | f7ab29e1a7a24d33ccfed8c860e7ea9f81ef4146 /platform-paper/build.gradle.kts | |
| parent | f56d42a478c0dfefe8b2a5d73e483d0ad11e1e89 (diff) | |
| download | LunaticChat-265b668a91e944d90d5e4654f2e9af85188c5135.tar.gz LunaticChat-265b668a91e944d90d5e4654f2e9af85188c5135.tar.bz2 LunaticChat-265b668a91e944d90d5e4654f2e9af85188c5135.zip | |
feat: Add more status view to Status command
Diffstat (limited to 'platform-paper/build.gradle.kts')
| -rw-r--r-- | platform-paper/build.gradle.kts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/platform-paper/build.gradle.kts b/platform-paper/build.gradle.kts index 18eaf0f..16519e2 100644 --- a/platform-paper/build.gradle.kts +++ b/platform-paper/build.gradle.kts @@ -42,12 +42,24 @@ tasks { } processResources { - val props = mapOf("version" to project.version) + val gitCommitHash = + providers + .exec { + commandLine("git", "rev-parse", "--short", "HEAD") + }.standardOutput + .asText + .get() + .trim() + + val props = mapOf("version" to project.version, "gitCommitHash" to gitCommitHash) inputs.properties(props) filteringCharset = "UTF-8" filesMatching("paper-plugin.yml") { expand(props) } + filesMatching("build-info.properties") { + expand(props) + } } build { |
