File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >com.itextpdf.research</groupId >
88 <artifactId >xfdf-merge</artifactId >
9- <version >1.0-SNAPSHOT </version >
9+ <version >${revision} </version >
1010
1111 <properties >
12+ <revision >1.0-SNAPSHOT</revision > <!-- "revision" is special, anything else triggers a warning -->
1213 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1314 <maven .compiler.source>11</maven .compiler.source>
1415 <maven .compiler.target>11</maven .compiler.target>
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+
4+ # Script to generate jars with the current date in them
5+
6+ generate_version () {
7+ xmllint --shell pom.xml << EOF | grep -E -v '^/|^ ' | sed "s/SNAPSHOT/$( date --utc +%Y%m%d) /"
8+ setns ns=http://maven.apache.org/POM/4.0.0
9+ cat /ns:project/ns:properties/ns:revision/text()
10+ EOF
11+ }
12+
13+ VERSION_STR=$( generate_version)
14+
15+ echo " Building version $VERSION_STR ..."
16+ mvn package " -Drevision=$VERSION_STR "
You can’t perform that action at this time.
0 commit comments