File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed
src/main/resources/com/graphhopper Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 108
108
</executions >
109
109
</plugin >
110
110
111
+ <plugin >
112
+ <groupId >pl.project13.maven</groupId >
113
+ <artifactId >git-commit-id-plugin</artifactId >
114
+ <version >2.2.5</version >
115
+ </plugin >
111
116
</plugins >
112
117
</pluginManagement >
113
118
119
+ <plugins >
120
+ <plugin >
121
+ <groupId >pl.project13.maven</groupId >
122
+ <artifactId >git-commit-id-plugin</artifactId >
123
+ <executions >
124
+ <execution >
125
+ <goals >
126
+ <goal >revision</goal >
127
+ </goals >
128
+ </execution >
129
+ </executions >
130
+
131
+ <configuration >
132
+ <dotGitDirectory >${parent.basedir} /.git</dotGitDirectory >
133
+ <failOnNoGitDirectory >false</failOnNoGitDirectory >
134
+ <failOnUnableToExtractRepoInfo >false</failOnUnableToExtractRepoInfo >
135
+ </configuration >
136
+ </plugin >
137
+ </plugins >
138
+
114
139
<!-- make version available at runtime via version file -->
115
140
<resources >
116
141
<resource >
119
144
<includes >
120
145
<include >**/version</include >
121
146
<include >**/builddate</include >
147
+ <include >**/gitinfo</include >
122
148
</includes >
123
149
</resource >
124
150
<resource >
127
153
<excludes >
128
154
<exclude >**/version</exclude >
129
155
<exclude >**/builddate</exclude >
156
+ <exclude >**/gitinfo</exclude >
130
157
</excludes >
131
158
</resource >
132
159
</resources >
133
160
</build >
134
- </project >
161
+ </project >
Original file line number Diff line number Diff line change
1
+ # properties will be filled by git-commit-id-plugin during maven build
2
+ gitHash=${git.commit.id}
3
+ gitBranch=${git.branch}
4
+ gitDirty=${git.dirty}
5
+ gitCommitTime=${git.commit.time}
You can’t perform that action at this time.
0 commit comments