<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         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>co.hypertest</groupId>
    <artifactId>shaded-libraries</artifactId>
    <version>1.0.0</version>

    <name>${project.groupId}:${project.artifactId}</name>
    <description>
        HyperTest is a no-code test automation tool designed to seamlessly integrate into your codebase and
        accelerate the process of generating unit tests for various types of service interfaces including HTTP, GraphQL,
        gRPC, Kafka, and RabbitMQ.

        It focuses on auto-generating test cases that can be executed in isolation, free from external dependencies, by
        creating mocks.

        HyperTest enables developers to catch logical bugs that could affect upstream or downstream services before
        their changes get merged.
    </description>
    <url>https://docs-v2.hypertest.co/</url>

    <developers>
        <developer>
            <name>Akshay Arora</name>
            <email>akshay@hypertest.co</email>
            <organization>Hypertest</organization>
            <organizationUrl>https://www.hypertest.co</organizationUrl>
        </developer>
        <developer>
            <name>Kuldeep Bishnoi</name>
            <email>kuldeep@hypertest.co</email>
            <organization>Hypertest</organization>
            <organizationUrl>https://www.hypertest.co</organizationUrl>
        </developer>
        <developer>
            <name>Karan Raina</name>
            <email>karan@hypertest.co</email>
            <organization>Hypertest</organization>
            <organizationUrl>https://www.hypertest.co</organizationUrl>
        </developer>
        <developer>
            <name>Vineet Bakshi</name>
            <email>vineet@hypertest.co</email>
            <organization>Hypertest</organization>
            <organizationUrl>https://www.hypertest.co</organizationUrl>
        </developer>
    </developers>

    <!--    source control system-->
    <scm>
        <connection>scm:git:git://github.com/hypertestco/autoqa_v2_java.git</connection>
        <developerConnection>scm:git:ssh://github.com:hypertestco/autoqa_v2_java.git</developerConnection>
        <url>http://github.com/hypertestco/autoqa_v2_java/tree/master</url>
    </scm>

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

    <licenses>
        <license>
            <name>CC BY-NC-ND 4.0</name>
            <url>https://creativecommons.org/licenses/by-nc-nd/4.0/</url>
            <comments>This software is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
                International License.
            </comments>
        </license>
    </licenses>

    <dependencies>
        <dependency>
            <groupId>io.opentelemetry</groupId>
            <artifactId>opentelemetry-sdk-testing</artifactId>
            <version>1.38.0</version>
            <scope>optional</scope>
        </dependency>
        <dependency>
            <groupId>io.opentelemetry</groupId>
            <artifactId>opentelemetry-exporter-otlp</artifactId>
            <version>1.38.0</version>
            <scope>optional</scope>
        </dependency>
        <dependency>
            <groupId>io.opentelemetry</groupId>
            <artifactId>opentelemetry-api</artifactId>
            <version>1.38.0</version>
            <scope>optional</scope>
        </dependency>

        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>okhttp</artifactId>
            <version>4.12.0</version>
            <scope>compile</scope>
        </dependency>

        <!--        com.squareup.okhttp3:okhttp:jar:4.12.0:runtime-->

        <dependency>
            <groupId>io.opentelemetry</groupId>
            <artifactId>opentelemetry-sdk</artifactId>
            <version>1.38.0</version>
            <scope>optional</scope>
        </dependency>
        <dependency>
            <groupId>io.opentelemetry</groupId>
            <artifactId>opentelemetry-exporter-otlp-common</artifactId>
            <version>1.38.0</version>
            <scope>optional</scope>
        </dependency>
        <dependency>
            <groupId>io.opentelemetry.semconv</groupId>
            <artifactId>opentelemetry-semconv</artifactId>
            <version>1.23.1-alpha</version>
            <scope>optional</scope>
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <!--            javadoc-->
            <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>
            <!--            sources-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.2.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!--            pom, .asc-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- the plugin does generate the required checksums for files that are part of a bundle.
             See the below Plugin configuration options. By default, all acceptable checksums are generated (MD5, SHA1, SHA256 and SHA512)-->
            <plugin>
                <groupId>org.sonatype.central</groupId>
                <artifactId>central-publishing-maven-plugin</artifactId>
                <version>0.7.0</version>
                <extensions>true</extensions>
                <configuration>
                    <publishingServerId>central</publishingServerId>
                    <!--                    <autoPublish>true</autoPublish>-->
                    <!--                    <skipPublishing>true</skipPublishing>-->
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.5.3</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                            <relocations>
                                <relocation>
                                    <pattern>io.opentelemetry</pattern>
                                    <shadedPattern>hypertest.io.opentelemetry</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>okhttp3</pattern>
                                    <shadedPattern>hypertest.okhttp3</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>okio</pattern>
                                    <shadedPattern>hypertest.okio</shadedPattern>
                                </relocation>
                            </relocations>
                            <transformers>
                                <transformer
                                        implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                                <transformer
                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
                            </transformers>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
