<?xml version="1.0" encoding="UTF-8"?>

<!--
 * Copyright 2020-2021 Kiwi Project
 *
 * 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 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>

    <parent>
        <groupId>org.kiwiproject</groupId>
        <artifactId>kiwi-parent</artifactId>
        <version>0.15.0</version>
    </parent>

    <artifactId>retrying-again</artifactId>
    <version>0.7.0</version>
    <packaging>jar</packaging>

    <name>${project.groupId}:${project.artifactId}</name>
    <description>
        A Java library to allow for the creation of configurable retrying strategies for an arbitrary function call,
        such as something that communicates with a remote service with flaky uptime.
    </description>
    <url>https://github.com/kiwiproject/retrying-again</url>
    <inceptionYear>2020</inceptionYear>

    <scm>
        <connection>scm:git:https://github.com/kiwiproject/retrying-again.git</connection>
        <developerConnection>scm:git:git@github.com:kiwiproject/retrying-again.git</developerConnection>
        <url>https://github.com/kiwiproject/retrying-again</url>
        <tag>v0.7.0</tag>
    </scm>

    <properties>

        <!-- Versions for required dependencies -->
        <guava.version>30.1.1-jre</guava.version>

        <!-- Versions for optional dependencies -->
        <error_prone_annotations.version>2.8.0</error_prone_annotations.version>
        <jsr305.version>3.0.2</jsr305.version>

        <!-- Sonar properties -->
        <sonar.projectKey>kiwiproject_retrying-again</sonar.projectKey>
        <sonar.organization>kiwiproject</sonar.organization>
        <sonar.host.url>https://sonarcloud.io</sonar.host.url>
    </properties>

    <dependencies>

        <!-- required dependencies -->
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>${guava.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.errorprone</groupId>
                    <artifactId>error_prone_annotations</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- optional dependencies -->

        <dependency>
            <groupId>com.google.errorprone</groupId>
            <artifactId>error_prone_annotations</artifactId>
            <version>${error_prone_annotations.version}</version>
            <optional>true</optional>
        </dependency>

        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
            <version>${jsr305.version}</version>
            <optional>true</optional>
        </dependency>

        <!-- test dependencies -->

    </dependencies>

</project>
