summaryrefslogtreecommitdiff
path: root/src/main/resources/version.properties
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-20 20:07:20 +0300
committerPaul Buetow <paul@buetow.org>2025-06-20 20:07:20 +0300
commit32882ca8582a102b9357e8d7f2c313d52c568977 (patch)
treeaa0449c9c4c0d92a019d44caa84f9a24c8510098 /src/main/resources/version.properties
parent530d671353dfcfee74cdd16660105ffefa0784e9 (diff)
Implement dynamic version injection from pom.xml
- Create version.properties resource file with Maven placeholders - Enable Maven resource filtering for version.properties - Add VSVersionInfo utility class to read version at runtime - Update VSDefaultPrefs to use dynamic version instead of hardcoded - Version now shows "Distributed Systems Simulator 1.0.1-SNAPSHOT" - Includes build timestamp for better traceability The version in the title bar is now automatically updated from the pom.xml version during the build process. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'src/main/resources/version.properties')
-rw-r--r--src/main/resources/version.properties7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/resources/version.properties b/src/main/resources/version.properties
new file mode 100644
index 0000000..dc3a55f
--- /dev/null
+++ b/src/main/resources/version.properties
@@ -0,0 +1,7 @@
+# Version information generated at build time
+# This file is processed by Maven resource filtering
+app.version=${project.version}
+app.name=${project.name}
+app.description=${project.description}
+build.timestamp=${maven.build.timestamp}
+maven.build.timestamp.format=yyyy-MM-dd HH:mm:ss \ No newline at end of file