build: store version into .env file

This commit is contained in:
Sven Vogel 2024-12-18 18:55:22 +01:00
parent 66d2b99762
commit ab2f0f5bd6
3 changed files with 5 additions and 2 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
VERSION=2.0.0

View File

@ -1,4 +1,6 @@
include .env
clean: clean:
mvn clean mvn clean
@ -6,4 +8,4 @@ build:
mvn package mvn package
run: run:
java -jar target/gytebot-1.0.0-jar-with-dependencies.jar java -jar target/gytebot-${VERSION}-jar-with-dependencies.jar

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>me.srvstr</groupId> <groupId>me.srvstr</groupId>
<artifactId>gytebot</artifactId> <artifactId>gytebot</artifactId>
<version>1.0.0</version> <version>2.0.0</version>
<properties> <properties>
<maven.compiler.source>16</maven.compiler.source> <maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target> <maven.compiler.target>16</maven.compiler.target>