<?xml version="1.0" encoding="UTF-8"?>
<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>io.github.jorgericovivas</groupId>
    <artifactId>rust_essentials</artifactId>
    <version>0.9.0</version>

    <name>rust_essentials</name>
    <description>Java library adapting some of Rust features to Java, allowing to create more readable, maintainable, and secure code.</description>
    <url>https://github.com/JorgeRicoVivas/rust_essentials</url>

    <licenses>
        <license>
            <name>Creative Commons Zero v1.0 Universal</name>
            <url>https://creativecommons.org/publicdomain/zero/1.0/deed.en</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Jorge Rico Vivas</name>
            <email>jorgericoinformatic@gmail.com</email>
            <url>https://github.com/JorgeRicoVivas</url>
            <organization>Jorge Rico Vivas</organization>
            <organizationUrl>https://github.com/JorgeRicoVivas</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/JorgeRicoVivas/rust_essentials.git</connection>
        <developerConnection>scm:git:ssh://github.com:JorgeRicoVivas/rust_essentials.git</developerConnection>
        <url>https://github.com/JorgeRicoVivas/rust_essentials.git</url>
    </scm>

    <profiles>
        <profile>
            <id>deployment</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>3.11.2</version>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.3.1</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-gpg-plugin</artifactId>
                        <version>3.2.7</version>
                        <configuration>
                            <gpgArguments>
                                <arg>--pinentry-mode</arg>
                                <arg>loopback</arg>
                            </gpgArguments>
                        </configuration>
                        <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>0.6.0</version>
                        <extensions>true</extensions>
                        <configuration>
                            <publishingServerId>central</publishingServerId>
                            <autoPublish>true</autoPublish>
                            <waitUntil>uploaded</waitUntil>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.jetbrains</groupId>
            <artifactId>annotations</artifactId>
            <version>24.1.0</version>
        </dependency>
    </dependencies>

</project>