This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pom. See http://git.nuiton.org/pom.git commit 8113f1a023ceea01b46a39c7d78168fb600e026d Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Mar 3 13:52:28 2016 +0100 Make mandatory javaVersion, signatureArtifactId and signatureVersion (See #3912) --- pom.xml | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 87 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 3d4d01e..fb6db7d 100644 --- a/pom.xml +++ b/pom.xml @@ -170,9 +170,13 @@ <properties> - <!-- the redmine plateform used --> + <!-- the redmine plateform used (filled by direct child of pom) --> <platform /> + <!-- ////////////////////////////////////////////////////////////////// --> + <!-- //// Mandatory properties you need to define in your project //// --> + <!-- ////////////////////////////////////////////////////////////////// --> + <!-- a proprerty to define the id of the project, in a multi-module project, you must use a hard-cored value, otherwise for modules the artifactId will be expanded , otherwise, no need to override it @@ -182,6 +186,21 @@ <!-- a proprerty to define the id of the ci view. --> <ciViewId /> + <!-- To define java level (use 1.6, 1.7 or 1.8) --> + <javaVersion/> + + <!-- + To define which java level to check in your java code (should be synch with javaVersion). + Use (16, 17 or 18) (this is the version of the animal-sniffer signature artifactId to use) + --> + <signatureArtifactId/> + + <!-- + To define which java level to check in your java code (should be synch with javaVersion). + Use (1.0 for most case) (this is the version of the animal-sniffer signature version to use) + --> + <signatureVersion/> + <redmineDomain>forge.${platform}</redmineDomain> <!-- default encoding --> @@ -309,7 +328,6 @@ <!-- //// Compiler configuration //// --> <!-- ////////////////////////////////////////////////////////////////// --> - <javaVersion>1.8</javaVersion> <maven.compiler.source>${javaVersion}</maven.compiler.source> <maven.compiler.target>${javaVersion}</maven.compiler.target> <maven.compiler.showWarnings>true</maven.compiler.showWarnings> @@ -923,6 +941,69 @@ </execution> <execution> + <id>enforce-javaVersion</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>validate</phase> + <configuration> + <rules> + <requireProperty> + <property>javaVersion</property> + <message>"javaVersion property must be specified."</message> + <regex>1\.6|1\.7|1\.8$</regex> + <regexMessage>"javaVersion property can not be empty and must be 1.6 or 1.7 or 1.8."</regexMessage> + </requireProperty> + </rules> + <ignoreCache>true</ignoreCache> + <failFast>true</failFast> + <fail>true</fail> + </configuration> + </execution> + + <execution> + <id>enforce-signatureArtifactId</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>validate</phase> + <configuration> + <rules> + <requireProperty> + <property>signatureArtifactId</property> + <message>"signatureArtifactId property must be specified."</message> + <regex>16|17|18$</regex> + <regexMessage>"signatureArtifactId property can not be empty and must be 16 or 17 or 18."</regexMessage> + </requireProperty> + </rules> + <ignoreCache>true</ignoreCache> + <failFast>true</failFast> + <fail>true</fail> + </configuration> + </execution> + + <execution> + <id>enforce-signatureVersion</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>validate</phase> + <configuration> + <rules> + <requireProperty> + <property>signatureVersion</property> + <message>"signatureVersion property must be specified."</message> + <regex>.+$</regex> + <regexMessage>"signatureVersion property can not be empty."</regexMessage> + </requireProperty> + </rules> + <ignoreCache>true</ignoreCache> + <failFast>true</failFast> + <fail>true</fail> + </configuration> + </execution> + + <execution> <id>enforce-java-versions</id> <goals> <goal>enforce</goal> @@ -1094,13 +1175,6 @@ </property> </activation> - <properties> - - <signatureArtifactId>java18</signatureArtifactId> - <signatureVersion>1.0</signatureVersion> - - </properties> - <build> <plugins> @@ -1932,6 +2006,10 @@ <platform>nuiton.org</platform> <projectId>pom</projectId> <ciViewId>dummy</ciViewId> + <javaVersion>1.8</javaVersion> + <signatureArtifactId>18</signatureArtifactId> + <signatureVersion>1.0</signatureVersion> + <!-- Deploy on central release repository --> <release.repository>${central.release.repository}</release.repository> <repository.home.url>${central.release.home.url}</repository.home.url> -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.