build: store version into .env file
This commit is contained in:
parent
66d2b99762
commit
ab2f0f5bd6
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue