|
5 | 5 | <groupId>org.nqm</groupId>
|
6 | 6 | <artifactId>gis</artifactId>
|
7 | 7 | <version>2.0.0-dev</version>
|
8 |
| - <packaging>${packaging}</packaging> |
| 8 | + <packaging>jar</packaging> |
9 | 9 |
|
10 | 10 | <properties>
|
| 11 | + <commit.hash>${git.commit.id.abbrev}</commit.hash> |
11 | 12 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
12 | 13 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
13 |
| - <packaging>jar</packaging> |
14 | 14 | <maven.compiler.target>21</maven.compiler.target>
|
15 | 15 | <maven.compiler.source>21</maven.compiler.source>
|
16 | 16 | <picocli.version>4.7.6</picocli.version>
|
|
22 | 22 | <maven-surefire.version>3.3.0</maven-surefire.version>
|
23 | 23 | <compiler.plugin.version>3.12.1</compiler.plugin.version>
|
24 | 24 | <jar.plugin.version>3.3.0</jar.plugin.version>
|
| 25 | + <jacoco.version>0.8.12</jacoco.version> |
| 26 | + <commit.id.version>9.0.1</commit.id.version> |
25 | 27 | </properties>
|
26 | 28 |
|
27 | 29 | <dependencies>
|
|
78 | 80 |
|
79 | 81 | <build>
|
80 | 82 | <defaultGoal>package</defaultGoal>
|
| 83 | + <resources> |
| 84 | + <resource> |
| 85 | + <directory>src/main/resources</directory> |
| 86 | + <filtering>true</filtering> |
| 87 | + </resource> |
| 88 | + </resources> |
81 | 89 | <plugins>
|
82 | 90 | <plugin>
|
83 | 91 | <groupId>org.apache.maven.plugins</groupId>
|
|
153 | 161 | <plugin>
|
154 | 162 | <groupId>org.jacoco</groupId>
|
155 | 163 | <artifactId>jacoco-maven-plugin</artifactId>
|
156 |
| - <version>0.8.12</version> |
| 164 | + <version>${jacoco.version}</version> |
157 | 165 | <executions>
|
158 | 166 | <execution>
|
159 |
| - <id>prepare-agent</id> |
| 167 | + <phase>test-compile</phase> |
160 | 168 | <goals>
|
161 | 169 | <goal>prepare-agent</goal>
|
162 | 170 | </goals>
|
|
174 | 182 | </execution>
|
175 | 183 | </executions>
|
176 | 184 | </plugin>
|
| 185 | + <plugin> |
| 186 | + <groupId>io.github.git-commit-id</groupId> |
| 187 | + <artifactId>git-commit-id-maven-plugin</artifactId> |
| 188 | + <version>${commit.id.version}</version> |
| 189 | + <executions> |
| 190 | + <execution> |
| 191 | + <id>get-the-git-infos</id> |
| 192 | + <goals> |
| 193 | + <goal>revision</goal> |
| 194 | + </goals> |
| 195 | + <phase>process-sources</phase> |
| 196 | + </execution> |
| 197 | + </executions> |
| 198 | + <configuration> |
| 199 | + <includeOnlyProperties> |
| 200 | + <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty> |
| 201 | + </includeOnlyProperties> |
| 202 | + </configuration> |
| 203 | + </plugin> |
177 | 204 | </plugins>
|
178 | 205 | </build>
|
179 | 206 | </project>
|
0 commit comments