[Core] [Env] Add version (#797)

This commit is contained in:
qianmoQ 2024-07-02 21:05:08 +08:00 committed by GitHub
commit e4becd4730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,6 @@
################################### Banner configure #################################
app.version=2024.03.7-SNAPSHOT
################################### Basic configure #################################
server.port=9096
# Note: If you need to use IP+ port to facilitate access by external machines, do not set it to localhost, 0.0.0.0 is recommended

View File

@ -33,6 +33,9 @@ job_runner_apply() {
printf "\nApply new version for server successful\n\n"
fi
echo "Apply new version for application ..."
perl -pi -e 's/app\.version=.*/app.version='"$VERSION"'/g' configure/etc/conf/application.properties
printf "Apply new version for web ...\n"
# shellcheck disable=SC2164
cd "$HOME"/core/datacap-ui

View File

@ -3,3 +3,8 @@
8I Yb dPYb 88 dPYb dP `" dPYb 88__dP
8I dY dP__Yb 88 dP__Yb Yb dP__Yb 88"""
8888Y" dP""""Yb 88 dP""""Yb YboodP dP""""Yb 88
::Spring Boot Version:: ${AnsiColor.RED}(${spring-boot.version})${AnsiColor.DEFAULT}
::Application Version:: ${AnsiColor.RED}(${app.version})${AnsiColor.DEFAULT}
::Application Address:: ${AnsiColor.RED}http://${server.address}:${server.port}${AnsiColor.DEFAULT}

View File

@ -102,6 +102,11 @@
<artifactId>datacap-convert-csv</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.edurt.datacap</groupId>
<artifactId>datacap-convert-xml</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>