Skip to content

Commit

Permalink
[Core] [Env] Add version (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
qianmoQ committed Jul 2, 2024
2 parents a99564b + d27639e commit e4becd4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure/etc/conf/application.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions configure/publish/publish-newVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions core/datacap-server/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
5 changes: 5 additions & 0 deletions core/datacap-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e4becd4

Please sign in to comment.