<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <!-- deploy with mvn -Prelease -f bom.xml deploy -->
  <groupId>se.alipsa.matrix</groupId>
  <artifactId>matrix-bom</artifactId>
  <version>1.1.2</version>
  <name>Matrix Bill of Materials</name>
  <description>bom file for simpler dependency management of Matrix libraries</description>
  <packaging>pom</packaging>
  <url>https://github.com/Alipsa/matrix</url>
  <licenses>
    <license>
      <name>MIT</name>
      <url>https://github.com/Alipsa/matrix/blob/main/LICENSE</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Per Nyfelt</name>
      <email>per.nyfelt@alipsa.se</email>
      <organization>Alipsa HB</organization>
      <organizationUrl>http://www.alipsa.se</organizationUrl>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:https://github.com/Alipsa/matrix.git</connection>
    <developerConnection>scm:git:https://github.com/Alipsa/matrix.git</developerConnection>
    <url>https://github.com/Alipsa/matrix/tree/main</url>
  </scm>
  <properties>
    <matrixCoreVersion>2.3.1</matrixCoreVersion>
    <matrixStatsVersion>1.1.0</matrixStatsVersion><!-- no change -->
    <matrixSqlVersion>1.1.1</matrixSqlVersion>
    <matrixDatasetsVersion>1.1.0</matrixDatasetsVersion><!-- no change -->
    <matrixSpreadsheetVersion>1.2.1</matrixSpreadsheetVersion>
    <matrixJsonVersion>1.1.0</matrixJsonVersion><!-- no change -->
    <matrixCsvVersion>1.1.0</matrixCsvVersion><!-- no change -->
    <matrixParquetVersion>0.1</matrixParquetVersion>
    <matrixBigQueryVersion>0.1</matrixBigQueryVersion>
    <matrixChartsVersion>0.1</matrixChartsVersion>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-core</artifactId>
        <version>${matrixCoreVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-stats</artifactId>
        <version>${matrixStatsVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-sql</artifactId>
        <version>${matrixSqlVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-datasets</artifactId>
        <version>${matrixDatasetsVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-spreadsheet</artifactId>
        <version>${matrixSpreadsheetVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-json</artifactId>
        <version>${matrixJsonVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-csv</artifactId>
        <version>${matrixCsvVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-parquet</artifactId>
        <version>${matrixParquetVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-bigquery</artifactId>
        <version>${matrixBigQueryVersion}</version>
      </dependency>
      <dependency>
        <groupId>se.alipsa.matrix</groupId>
        <artifactId>matrix-charts</artifactId>
        <version>${matrixChartsVersion}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>2.18.0</version>
        <configuration>
          <rulesUri>file://${basedir}/version-plugin-rules.xml</rulesUri>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>3.5.0</version>
        <executions>
          <execution>
            <id>enforce-releases-maven-java</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>[3.9.9,)</version>
                  <level>ERROR</level>
                  <message>Please use maven version 3.9.9 or higher</message>
                </requireMavenVersion>
                <requireJavaVersion>
                  <version>17</version>
                  <level>ERROR</level>
                  <message>Please use Java 17</message>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>3.1.3</version>
      </plugin>
    </plugins>
  </build>

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

  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.2.7</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <!-- See https://central.sonatype.org/pages/apache-maven.html for details -->
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.7.0</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
