From ab2f0f5bd60be2be57eaae9953df4d2cf40ae153 Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 18 Dec 2024 18:55:22 +0100 Subject: [PATCH] build: store version into .env file --- .env | 1 + Makefile | 4 +++- pom.xml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..5226012 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +VERSION=2.0.0 diff --git a/Makefile b/Makefile index c72b42a..35bcd0f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ +include .env + clean: mvn clean @@ -6,4 +8,4 @@ build: mvn package run: - java -jar target/gytebot-1.0.0-jar-with-dependencies.jar + java -jar target/gytebot-${VERSION}-jar-with-dependencies.jar diff --git a/pom.xml b/pom.xml index 33a93fb..080078a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 me.srvstr gytebot - 1.0.0 + 2.0.0 16 16