feat(version): единый файл версий и отображение client/server в настройках

This commit is contained in:
AidarKC
2026-04-23 15:37:39 +03:00
parent e9f58ca004
commit ecb018b32c
6 changed files with 67 additions and 1 deletions
+8 -1
View File
@@ -4,6 +4,13 @@ plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
def appVersionProps = new Properties()
def appVersionFile = file('VERSION.properties')
if (appVersionFile.exists()) {
appVersionFile.withInputStream { appVersionProps.load(it) }
}
def serverVersionFromFile = String.valueOf(appVersionProps.getProperty('server.version', '1.1_codex')).trim()
allprojects {
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
@@ -11,7 +18,7 @@ allprojects {
}
group = 'shine'
version = '1.1_codex'
version = serverVersionFromFile
tasks.jar {
enabled = false // это что бы не создавала обычный джар, а будет только толстый джар