Skip to content

Commit 6563113

Browse files
belinguereshboutemy
authored andcommitted
Fix #7: Enforce check against Java 6 API signature. (#8)
* Fix #7: Enforce check against Java API signature - Added enforcer rule. - Added myself as dev. - use javaVersion property
1 parent 01d8db5 commit 6563113

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ limitations under the License.
247247
<role>Developer</role>
248248
</roles>
249249
</developer>
250+
<developer>
251+
<name>Gabriel Belingueres</name>
252+
<id>belingueres</id>
253+
<email>[email protected]</email>
254+
<roles>
255+
<role>Developer</role>
256+
</roles>
257+
</developer>
250258
</developers>
251259

252260
<mailingLists><!-- TODO decide what we do with mailing lists now -->
@@ -512,7 +520,15 @@ limitations under the License.
512520
</pluginManagement>
513521
<plugins>
514522
<plugin>
523+
<groupId>org.apache.maven.plugins</groupId>
515524
<artifactId>maven-enforcer-plugin</artifactId>
525+
<dependencies>
526+
<dependency>
527+
<groupId>org.codehaus.mojo</groupId>
528+
<artifactId>animal-sniffer-enforcer-rule</artifactId>
529+
<version>1.17</version>
530+
</dependency>
531+
</dependencies>
516532
<executions>
517533
<execution>
518534
<id>enforce-maven</id>
@@ -528,6 +544,24 @@ limitations under the License.
528544
</rules>
529545
</configuration>
530546
</execution>
547+
<execution>
548+
<id>check-signatures</id>
549+
<phase>test</phase>
550+
<goals>
551+
<goal>enforce</goal>
552+
</goals>
553+
<configuration>
554+
<rules>
555+
<checkSignatureRule implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
556+
<signature>
557+
<groupId>org.codehaus.mojo.signature</groupId>
558+
<artifactId>java1${javaVersion}</artifactId>
559+
<version>1.0</version>
560+
</signature>
561+
</checkSignatureRule>
562+
</rules>
563+
</configuration>
564+
</execution>
531565
</executions>
532566
</plugin>
533567
<plugin>

0 commit comments

Comments
 (0)