<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (C) 2018 Google, Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.datasyslab</groupId>
  <artifactId>s2-geometry-parent</artifactId>
  <version>20250620-rc1</version>
  <packaging>pom</packaging>
  <name>S2 Geometry for Java</name>
  <description>Spherical geometry library for Java.</description>
  <url>https://github.com/google/s2-geometry-library-java</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Chris Povirk</name>
      <email>cpovirk@google.com</email>
      <organization>Google LLC</organization>
      <organizationUrl>https://google.com</organizationUrl>
    </developer>
    <developer>
      <name>David Beaumont</name>
      <email>dbeaumont@google.com</email>
      <organization>Google LLC</organization>
      <organizationUrl>https://google.com</organizationUrl>
    </developer>
    <developer>
      <name>Eric Engle</name>
      <email>eengle@google.com</email>
      <organization>Google LLC</organization>
      <organizationUrl>https://google.com</organizationUrl>
    </developer>
    <developer>
      <name>Torrey Hoffman</name>
      <email>torrey@google.com</email>
      <organization>Google LLC</organization>
      <organizationUrl>https://google.com</organizationUrl>
    </developer>
    <developer>
      <name>Kurt Kluever</name>
      <email>kak@google.com</email>
      <organization>Google LLC</organization>
      <organizationUrl>https://google.com</organizationUrl>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Alexei Ababilov</name>
      <email>aababilov@google.com</email>
      <organization>Google LLC</organization>
      <organizationUrl>https://google.com</organizationUrl>
    </contributor>
  </contributors>
  <modules>
    <module>library</module>
    <module>tests</module>
    <module>benchmarks</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/google/s2-geometry-library-java.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/google/s2-geometry-library-java.git</developerConnection>
    <url>https://github.com/google/s2-geometry-library-java/tree/master</url>
  </scm>
  <distributionManagement>
    <repository>
      <id>sonatype-nexus-staging</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>sonatype-nexus-staging</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <maven.compiler.release>11</maven.compiler.release>
    <jsr305.version>3.0.2</jsr305.version>
    <maven.compiler.source>11</maven.compiler.source>
    <errorprone.version>2.19.1</errorprone.version>
    <guava.version>33.4.7-jre</guava.version>
    <surefire.version>3.0.0-M7</surefire.version>
    <revision>20250620-rc1</revision>
    <maven.compiler.target>11</maven.compiler.target>
    <fastutil.version>8.5.15</fastutil.version>
    <jsinterop.version>2.0.0</jsinterop.version>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.1.0</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sonatype-oss-release</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.central</groupId>
            <artifactId>central-publishing-maven-plugin</artifactId>
            <version>0.7.0</version>
            <extensions>true</extensions>
            <executions>
              <execution>
                <id>injected-central-publishing</id>
                <phase>deploy</phase>
                <goals>
                  <goal>publish</goal>
                </goals>
                <configuration>
                  <publishingServerId>central</publishingServerId>
                  <autoPublish>true</autoPublish>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <publishingServerId>central</publishingServerId>
              <autoPublish>true</autoPublish>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
            <inherited>true</inherited>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.10.4</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <failOnError>false</failOnError>
                </configuration>
              </execution>
            </executions>
            <inherited>true</inherited>
            <configuration>
              <failOnError>false</failOnError>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
