You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/11/06 17:59:36 UTC

[commons-rng] branch master updated: Enable JApiCmp for JDK 1.8+.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new e72ec6c  Enable JApiCmp for JDK 1.8+.
e72ec6c is described below

commit e72ec6c5ff8bc80b9dd416c79e8f0de1555bccec
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Nov 6 17:59:32 2019 +0000

    Enable JApiCmp for JDK 1.8+.
    
    Requires moving <commons.bc.version> from the dist-archive module to the
    top level pom.
---
 commons-rng-examples/pom.xml |  4 ++++
 dist-archive/pom.xml         |  1 -
 pom.xml                      | 20 ++++++++++++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/commons-rng-examples/pom.xml b/commons-rng-examples/pom.xml
index c63e546..f7baf69 100644
--- a/commons-rng-examples/pom.xml
+++ b/commons-rng-examples/pom.xml
@@ -50,6 +50,10 @@
     <rng.parent.dir>${basedir}/..</rng.parent.dir>
 
     <rng.picocli.version>3.9.5</rng.picocli.version>
+
+    <!-- Disable JApiCmp failures (but keep the report). The examples API is allowed to change. -->
+    <commons.japicmp.breakBuildOnBinaryIncompatibleModifications>false</commons.japicmp.breakBuildOnBinaryIncompatibleModifications>
+    <commons.japicmp.breakBuildOnSourceIncompatibleModifications>false</commons.japicmp.breakBuildOnSourceIncompatibleModifications>
   </properties>
 
   <dependencyManagement>
diff --git a/dist-archive/pom.xml b/dist-archive/pom.xml
index 127bc16..b67da4d 100644
--- a/dist-archive/pom.xml
+++ b/dist-archive/pom.xml
@@ -39,7 +39,6 @@ under the License.
     <checkstyle.skip>true</checkstyle.skip>
     <animal.sniffer.skip>true</animal.sniffer.skip>
     <!-- Commons Release Plugin -->
-    <commons.bc.version>1.0</commons.bc.version>
     <commons.release.isDistModule>true</commons.release.isDistModule>
     <commons.siteOutputDirectory>${basedir}/../target/site</commons.siteOutputDirectory>
     <commons.releaseNotesLocation>${basedir}/../RELEASE-NOTES.txt</commons.releaseNotesLocation>
diff --git a/pom.xml b/pom.xml
index 22e31f0..f188341 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,6 +44,7 @@
     <commons.automatic.module.name>org.apache.commons.rng.parent</commons.automatic.module.name>
     <!-- do not use snapshot suffix here -->
     <commons.release.version>1.2</commons.release.version>
+    <commons.bc.version>${commons.release.version}</commons.bc.version>
     <commons.rc.version>RC1</commons.rc.version>
     <commons.release.desc>(requires Java 6+)</commons.release.desc>
     <commons.binary.suffix>-bin</commons.binary.suffix>
@@ -524,6 +525,8 @@
         <allowscript.javadoc.qualifier>--allow-script-in-comments</allowscript.javadoc.qualifier>
         <!-- Check for all javadoc errors -->
         <doclint.javadoc.qualifier>-Xdoclint:all</doclint.javadoc.qualifier>
+        <!-- Enable JApiCmp -->
+        <japicmp.skip>false</japicmp.skip>
       </properties>
       <build>
         <plugins>
@@ -559,6 +562,18 @@
               </execution>
             </executions>
           </plugin>
+          <plugin>
+            <groupId>com.github.siom79.japicmp</groupId>
+            <artifactId>japicmp-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>verify</phase>
+                <goals>
+                  <goal>cmp</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
         </plugins>
       </build>
       <reporting>
@@ -583,6 +598,11 @@
               </reportSet>
             </reportSets>
           </plugin>
+          <plugin>
+            <groupId>com.github.siom79.japicmp</groupId>
+            <artifactId>japicmp-maven-plugin</artifactId>
+            <version>${commons.japicmp.version}</version>
+          </plugin>
         </plugins>
       </reporting>
     </profile>