<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>io.dscope.camel</groupId>
  <artifactId>camel-persistence</artifactId>
  <version>1.3.1</version>
  <packaging>pom</packaging>

  <name>Camel Persistence</name>
  <description>Modular flow-state persistence for Apache Camel with pluggable JDBC, Redis, and IC4J/ICP backends.</description>
  <url>https://github.com/dscope-io/dscope-camel-persistence</url>

  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <developers>
    <developer>
      <id>dscope-io</id>
      <name>DScope Development Team</name>
      <email>dev@dscope.io</email>
      <organization>DScope</organization>
      <organizationUrl>https://github.com/dscope-io</organizationUrl>
    </developer>
  </developers>

  <scm>
    <connection>scm:git:https://github.com/dscope-io/dscope-camel-persistence.git</connection>
    <developerConnection>scm:git:ssh://git@github.com:dscope-io/dscope-camel-persistence.git</developerConnection>
    <url>https://github.com/dscope-io/dscope-camel-persistence</url>
    <tag>HEAD</tag>
  </scm>

  <properties>
    <maven.compiler.release>21</maven.compiler.release>
    <jackson.version>2.20.0</jackson.version>
    <junit.version>5.10.2</junit.version>
    <jedis.version>5.2.0</jedis.version>
    <camel.version>4.20.0</camel.version>
    <ic4j.camel.version>0.8.2</ic4j.camel.version>
    <maven.source.plugin.version>3.3.1</maven.source.plugin.version>
    <maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version>
    <maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
    <central.publishing.plugin.version>0.10.0</central.publishing.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <modules>
    <module>camel-persistence-core</module>
    <module>camel-persistence-testkit</module>
    <module>camel-persistence-redis</module>
    <module>camel-persistence-jdbc</module>
    <module>camel-persistence-ic4j</module>
  </modules>

  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>ossrh</id>
      <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <profiles>
    <profile>
      <id>central-release</id>
      <properties>
        <maven.deploy.skip>true</maven.deploy.skip>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>${maven.source.plugin.version}</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${maven.javadoc.plugin.version}</version>
            <configuration>
              <doclint>none</doclint>
            </configuration>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>${maven.gpg.plugin.version}</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <plugin>
            <groupId>org.sonatype.central</groupId>
            <artifactId>central-publishing-maven-plugin</artifactId>
            <version>${central.publishing.plugin.version}</version>
            <extensions>true</extensions>
            <configuration>
              <publishingServerId>central</publishingServerId>
              <deploymentName>io.dscope.camel:camel-persistence:${project.version}</deploymentName>
              <autoPublish>true</autoPublish>
              <waitUntil>VALIDATED</waitUntil>
            </configuration>
            <executions>
              <execution>
                <id>central-publish</id>
                <phase>deploy</phase>
                <goals>
                  <goal>publish</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>