summaryrefslogtreecommitdiff
path: root/pom.xml
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 /pom.xml
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 'pom.xml')
-rw-r--r--pom.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index cdffe35..5f24c39 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,6 +26,17 @@
<resources>
<resource>
<directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>version.properties</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <excludes>
+ <exclude>version.properties</exclude>
+ </excludes>
</resource>
</resources>
<plugins>