<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>


    <groupId>ch.zzeekk.spark</groupId>
    <artifactId>spark-expressions-parent</artifactId>
    <version>3.5.0</version>
    <packaging>pom</packaging>

    <licenses>
        <license>
            <name>Apache 2.0 License</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
        </license>
    </licenses>

    <modules>
        <module>expressions-interface</module>
        <module>spark-expressions</module>
        <module>spark-expressions-standalone</module>
        <module>spark-expressions-standalone-test</module>
    </modules>

    <!-- Used for license header by maven-license-plugin -->
    <name>Spark expressions</name>
    <description>A library to use Apache Spark SQL expressions directly on Scala case class data structures
    </description>
    <inceptionYear>2025</inceptionYear>
    <url>https://github.com/zzeekk/spark-expressions</url>

    <developers>
        <developer>
            <email>zzeekk@gmx.net</email>
            <name>Zach Kull</name>
            <url>https://github.com/zzeekk</url>
            <id>zzeekk</id>
        </developer>
    </developers>

    <profiles>
        <profile>
            <id>scala-2.12</id>
            <properties>
                <scala.minor.version>2.12</scala.minor.version>
                <scala.version>${scala.minor.version}.20</scala.version>
            </properties>
        </profile>
        <profile>
            <id>scala-2.13</id>
            <properties>
                <scala.minor.version>2.13</scala.minor.version>
                <scala.version>${scala.minor.version}.16</scala.version>
            </properties>
        </profile>
        <profile>
            <id>release-sonatype</id>
            <distributionManagement>
                <snapshotRepository>
                    <id>central</id>
                    <name>Sonatype Snapshot Repository</name>
                    <url>https://central.sonatype.com/repository/maven-snapshots/</url>
                </snapshotRepository>
                <repository>
                    <id>central</id>
                    <name>Maven Central Repository</name>
                    <url>https://repo1.maven.org/maven2</url>
                </repository>
            </distributionManagement>
            <build>
                <plugins>
                    <!-- create scala-doc -->
                    <plugin>
                        <groupId>net.alchim31.maven</groupId>
                        <artifactId>scala-maven-plugin</artifactId>
                        <version>4.8.1</version>
                        <configuration>
                            <scalaCompatVersion>${scala.minor.version}</scalaCompatVersion>
                        </configuration>
                        <executions>
                            <execution>
                                <id>scala-doc</id>
                                <goals>
                                    <goal>doc-jar</goal>
                                </goals>
                                <configuration>
                                    <args>
                                        <arg>-no-link-warnings</arg>
                                    </args>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- sign artifacts with gpg -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>3.2.8</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                                <configuration>
                                    <gpgArguments>
                                        <arg>--pinentry-mode</arg>
                                        <arg>loopback</arg>
                                    </gpgArguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- deploy to sonatype central -->
                    <plugin>
                        <groupId>org.sonatype.central</groupId>
                        <artifactId>central-publishing-maven-plugin</artifactId>
                        <version>0.8.0</version>
                        <extensions>true</extensions>
                        <configuration>
                            <publishingServerId>central</publishingServerId>
                            <autoPublish>false</autoPublish>
                            <excludeArtifacts>
                                <excludeArtifact>spark-expressions_${scala.minor.version}</excludeArtifact>
                                <excludeArtifact>spark-expressions-standalone-test_${scala.minor.version}</excludeArtifact>
                            </excludeArtifacts>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <skip.assembly>true</skip.assembly>
        <noLinkWarnings>-unchecked</noLinkWarnings>

        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.release>8</maven.compiler.release>

        <scala.minor.version>2.12</scala.minor.version>
        <scala.version>${scala.minor.version}.20</scala.version>

        <spark.version>3.5.6</spark.version>
        <scalatest.version>3.2.2</scalatest.version>
    </properties>

    <scm>
        <connection>scm:git:git://github.com/zzeekk/spark-expressions.git</connection>
        <developerConnection>scm:git:ssh://github.com/zzeekk/spark-expressions.git</developerConnection>
        <url>https://github.com/zzeekk/spark-expressions/tree/master</url>
    </scm>

    <repositories>
        <repository>
            <id>maven central</id>
            <name>Maven Central Repository</name>
            <url>https://repo1.maven.org/maven2/</url>
        </repository>
    </repositories>

</project>
