<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (c) 2006-2012 EBM WebSourcing, 2012-2026 Linagora
 
 This program/library is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
 the Free Software Foundation, either version 2.1 of the License, or (at your
 option) any later version.
 
 This program/library is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 for more details.
 
 You should have received a copy of the GNU Lesser General Public License
 along with this program/library; If not, see http://www.gnu.org/licenses/
 for the GNU Lesser General Public License version 2.1.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
      <artifactId>petals-tools-commons-parent</artifactId>
      <groupId>org.ow2.petals</groupId>
      <relativePath>../parent/pom.xml</relativePath>
      <version>3.5.0</version>
   </parent>

   <groupId>org.ow2.petals</groupId>
   <artifactId>petals-jbi</artifactId>
   <name>Petals ESB - JBI API</name>
   <version>2.0.0</version>
   <description>The JBI specification library</description>
   <packaging>jar</packaging>

   <properties>
      <!-- This corresponds to the last stabilised API, change it when a new one is chosen for Petals -->
      <previousApiVersion>1.4.0</previousApiVersion>
   </properties>

   <dependencies>
      <dependency>
         <groupId>jakarta.activation</groupId>
         <artifactId>jakarta.activation-api</artifactId>
      </dependency>
   </dependencies>

   <build>
      <plugins>
         <plugin>
            <groupId>com.github.siom79.japicmp</groupId>
            <artifactId>japicmp-maven-plugin</artifactId>
            <version>0.17.2</version>
            <configuration>
               <oldVersion>
                  <dependency>
                     <groupId>${project.groupId}</groupId>
                     <artifactId>${project.artifactId}</artifactId>
                     <version>${previousApiVersion}</version>
                  </dependency>
               </oldVersion>
               <newVersion>
                  <file>
                     <path>${project.build.directory}/${project.build.finalName}.jar</path>
                  </file>
               </newVersion>
               <parameter>
                  <!-- Fail if there is a binary incompatible API change. Decision is taken against semantic versioning -->
                  <breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
                  <!-- Let's focus on public api -->
                  <accessModifier>public</accessModifier>
                  <!-- Print on the console what was modified, including compatible changes -->
                  <onlyModified>true</onlyModified>
                  <excludes>
                     <!-- Someone introduced these two methods which are NOT part of the JBI spec
                          so we removed them with PETALSDISTRIB-120 and we ignore them here because this breaks API -->
                     <exclude>javax.jbi.messaging.MessageExchange#getFlowAttributes()</exclude>
                     <exclude>javax.jbi.messaging.MessageExchange#setFlowAttributes(org.ow2.petals.commons.log.FlowAttributes)</exclude>
                  </excludes>
               </parameter>
            </configuration>
            <executions>
               <execution>
                  <goals>
                     <goal>cmp</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>

   <scm>
      <connection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-jbi-2.0.0</connection>
      <developerConnection>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-jbi-2.0.0</developerConnection>
      <url>scm:svn:https://svn.petalslink.org/svnroot/tags/petals-jbi-2.0.0</url>
   </scm>
</project>
