|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 | 3 |
|
4 |
| - Copyright (C) 2000 - 2017 Silverpeas |
| 4 | + Copyright (C) 2000 - 2018 Silverpeas |
5 | 5 |
|
6 | 6 | This program is free software: you can redistribute it and/or modify
|
7 | 7 | it under the terms of the GNU Affero General Public License as
|
|
94 | 94 | </distributionManagement>
|
95 | 95 |
|
96 | 96 | <properties>
|
| 97 | + <!-- property used by the CI to both deploy a build version and release the next stable version --> |
| 98 | + <next.release>1.0</next.release> |
97 | 99 | <maven.compiler.source>1.8</maven.compiler.source>
|
98 | 100 | <maven.compiler.target>1.8</maven.compiler.target>
|
99 | 101 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
194 | 196 | <showDeprecation>true</showDeprecation>
|
195 | 197 | </configuration>
|
196 | 198 | </plugin>
|
| 199 | + <plugin> |
| 200 | + <groupId>org.apache.maven.plugins</groupId> |
| 201 | + <artifactId>maven-source-plugin</artifactId> |
| 202 | + <version>3.0.1</version> |
| 203 | + <configuration> |
| 204 | + <archive> |
| 205 | + <manifestEntries> |
| 206 | + <Build-Version>${project.version}</Build-Version> |
| 207 | + <Git-Commit>${git.commit.id.abbrev}</Git-Commit> |
| 208 | + <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp> |
| 209 | + </manifestEntries> |
| 210 | + </archive> |
| 211 | + </configuration> |
| 212 | + </plugin> |
| 213 | + <plugin> |
| 214 | + <groupId>org.apache.maven.plugins</groupId> |
| 215 | + <artifactId>maven-jar-plugin</artifactId> |
| 216 | + <version>3.0.2</version> |
| 217 | + <configuration> |
| 218 | + <archive> |
| 219 | + <manifestEntries> |
| 220 | + <Build-Version>${project.version}</Build-Version> |
| 221 | + <Git-Commit>${git.commit.id.abbrev}</Git-Commit> |
| 222 | + <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp> |
| 223 | + </manifestEntries> |
| 224 | + </archive> |
| 225 | + </configuration> |
| 226 | + </plugin> |
| 227 | + <plugin> |
| 228 | + <groupId>pl.project13.maven</groupId> |
| 229 | + <artifactId>git-commit-id-plugin</artifactId> |
| 230 | + <version>2.2.4</version> |
| 231 | + <configuration> |
| 232 | + <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
| 233 | + <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> |
| 234 | + <generateGitPropertiesFile>false</generateGitPropertiesFile> |
| 235 | + </configuration> |
| 236 | + </plugin> |
197 | 237 | </plugins>
|
198 | 238 | </pluginManagement>
|
| 239 | + <plugins> |
| 240 | + <plugin> |
| 241 | + <groupId>org.apache.maven.plugins</groupId> |
| 242 | + <artifactId>maven-source-plugin</artifactId> |
| 243 | + <executions> |
| 244 | + <execution> |
| 245 | + <id>attach-sources</id> |
| 246 | + <phase>verify</phase> |
| 247 | + <goals> |
| 248 | + <goal>jar-no-fork</goal> |
| 249 | + </goals> |
| 250 | + </execution> |
| 251 | + </executions> |
| 252 | + </plugin> |
| 253 | + <plugin> |
| 254 | + <groupId>pl.project13.maven</groupId> |
| 255 | + <artifactId>git-commit-id-plugin</artifactId> |
| 256 | + <executions> |
| 257 | + <execution> |
| 258 | + <phase>validate</phase> |
| 259 | + <goals> |
| 260 | + <goal>revision</goal> |
| 261 | + </goals> |
| 262 | + </execution> |
| 263 | + </executions> |
| 264 | + </plugin> |
| 265 | + </plugins> |
199 | 266 | </build>
|
200 | 267 |
|
201 | 268 | <profiles>
|
|
0 commit comments