META-INF.maven.com.azure.azure-cosmos.pom.xml Maven / Gradle / Ivy
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT 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>com.azure</groupId> <artifactId>azure-client-sdk-parent</artifactId> <version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} --> <relativePath>../../parents/azure-client-sdk-parent</relativePath> </parent> <groupId>com.azure</groupId> <artifactId>azure-cosmos</artifactId> <version>4.24.0</version> <!-- {x-version-update;com.azure:azure-cosmos;current} --> <name>Microsoft Azure SDK for SQL API of Azure Cosmos DB Service</name> <description>This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API</description> <packaging>jar</packaging> <url>https://github.com/Azure/azure-sdk-for-java</url> <distributionManagement> <site> <id>azure-java-build-docs</id> <url>${site.url}/site/${project.artifactId}</url> </site> </distributionManagement> <scm> <url>scm:git:https://github.com/Azure/azure-sdk-for-java</url> <connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection> <tag>HEAD</tag> </scm> <!-- CosmosSkip - Needed temporary values to 10% not fail. --> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <jacoco.min.linecoverage>0.10</jacoco.min.linecoverage> <jacoco.min.branchcoverage>0.10</jacoco.min.branchcoverage> <!-- Configures the Java 9+ run to perform the required module exports, opens, and reads that are necessary for testing but shouldn't be part of the module-info. --> <javaModulesSurefireArgLine> --add-opens com.azure.cosmos/com.azure.cosmos=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.caches=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.http=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.directconnectivity=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.query=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.routing=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.models=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.rx=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.rx.proxy=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.throughputControl=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.throughputControl.controller.request=ALL-UNNAMED --add-opens com.azure.cosmos/com.azure.cosmos.implementation.clienttelemetry=ALL-UNNAMED </javaModulesSurefireArgLine> <codesnippet.skip>false</codesnippet.skip> <javadocDoclet></javadocDoclet> <javadocDocletOptions></javadocDocletOptions> </properties> <dependencies> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <scope>test</scope> <version>2.7</version> <!-- {x-version-update;commons-io:commons-io;external_dependency} --> </dependency> <!-- Added this provided dependency to include necessary annotations used by "reactor-core". Without this dependency, javadoc throws a warning as it cannot find enum When.MAYBE which is used in @Nullable annotation in reactor core classes. Similar provided dependency exits for "azure-core" as well. --> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <version>3.0.2</version> <!-- {x-version-update;com.google.code.findbugs:jsr305;external_dependency} --> <scope>provided</scope> </dependency> <!-- https://mvnrepository.com/artifact/com.microsoft.azure/azure-core --> <dependency> <groupId>com.azure</groupId> <artifactId>azure-core</artifactId> <version>1.23.1</version> <!-- {x-version-update;com.azure:azure-core;dependency} --> </dependency> <dependency> <groupId>com.azure</groupId> <artifactId>azure-identity</artifactId> <version>1.4.2</version> <!-- {x-version-update;com.azure:azure-identity;dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>com.azure</groupId> <artifactId>azure-core-http-netty</artifactId> <version>1.11.4</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} --> <exclusions> <exclusion> <groupId>com.azure</groupId> <artifactId>azure-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-afterburner</artifactId> <version>2.12.5</version> <!-- {x-version-update;cosmos_com.fasterxml.jackson.module:jackson-module-afterburner;external_dependency} --> </dependency> <!-- Include these until azure-core releases with Jackson 2.12 as the dependency above creates a version mismatch conflict --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.13.0</version> <!-- {x-version-update;com.fasterxml.jackson.core:jackson-annotations;external_dependency} --> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.13.0</version> <!-- {x-version-update;com.fasterxml.jackson.core:jackson-core;external_dependency} --> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.13.0</version> <!-- {x-version-update;com.fasterxml.jackson.core:jackson-databind;external_dependency} --> </dependency> <dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-jsr310</artifactId> <version>2.13.0</version> <!-- {x-version-update;com.fasterxml.jackson.datatype:jackson-datatype-jsr310;external_dependency} --> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.32</version> <!-- {x-version-update;org.slf4j:slf4j-api;external_dependency} --> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <scope>test</scope> <version>4.2</version> <!-- {x-version-update;org.apache.commons:commons-collections4;external_dependency} --> </dependency> <!-- https://mvnrepository.com/artifact/org.hdrhistogram/HdrHistogram --> <dependency> <groupId>org.hdrhistogram</groupId> <artifactId>HdrHistogram</artifactId> <version>2.1.12</version> <!-- {x-version-update;cosmos_org.hdrhistogram:HdrHistogram;external_dependency} --> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-text</artifactId> <scope>test</scope> <version>1.6</version> <!-- {x-version-update;org.apache.commons:commons-text;external_dependency} --> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>7.3.0</version> <!-- {x-version-update;org.testng:testng;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.21.0</version> <!-- {x-version-update;org.assertj:assertj-core;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>2.17.0</version> <!-- {x-version-update;org.apache.logging.log4j:log4j-slf4j-impl;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.17.0</version> <!-- {x-version-update;org.apache.logging.log4j:log4j-api;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.17.0</version> <!-- {x-version-update;org.apache.logging.log4j:log4j-core;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>25.0-jre</version> <!-- {x-version-update;cosmos_com.google.guava:guava;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactId> <version>4.1.0</version> <!-- {x-version-update;cosmos_io.dropwizard.metrics:metrics-core;external_dependency} --> </dependency> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-core</artifactId> <version>1.8.0</version> <!-- {x-version-update;io.micrometer:micrometer-core;external_dependency} --> </dependency> <dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-test</artifactId> <version>3.4.12</version> <!-- {x-version-update;io.projectreactor:reactor-test;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>io.reactivex.rxjava2</groupId> <artifactId>rxjava</artifactId> <version>2.2.21</version> <!-- {x-version-update;io.reactivex.rxjava2:rxjava;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>4.0.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} --> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- CosmosSkip - This is not a module we want/expect external customers to consume. Skip breaking API checks. --> <!-- This can only be enabled once we release GA, as it needs a stable version to check for breaking changes. --> <plugin> <groupId>org.revapi</groupId> <artifactId>revapi-maven-plugin</artifactId> <version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} --> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>3.1.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-checkstyle-plugin;external_dependency} --> <configuration> <!-- This excludes all files contained within parent folders 'apachecommons', 'guava25', 'guava27', and 'uuid'. These folders contain code that has been shaded into azure-cosmos and shouldn't be checked by Checkstyle. --> <excludes>**/apachecommons/**/*,**/guava25/**/*,**/guava27/**/*,**/uuid/**/*</excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} --> <configuration> <groups>unit</groups> <includes> <include>%regex[.*]</include> </includes> <properties> <property> <name>surefire.testng.verbose</name> <value>2</value> </property> </properties> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-enforcer-plugin;external_dependency} --> <configuration> <rules> <bannedDependencies> <includes> <include>com.fasterxml.jackson.core:jackson-annotations:[2.13.0]</include> <!-- {x-include-update;com.fasterxml.jackson.core:jackson-annotations;external_dependency} --> <include>com.fasterxml.jackson.core:jackson-core:[2.13.0]</include> <!-- {x-include-update;com.fasterxml.jackson.core:jackson-core;external_dependency} --> <include>com.fasterxml.jackson.core:jackson-databind:[2.13.0]</include> <!-- {x-include-update;com.fasterxml.jackson.core:jackson-databind;external_dependency} --> <include>com.fasterxml.jackson.datatype:jackson-datatype-jsr310:[2.13.0]</include> <!-- {x-include-update;com.fasterxml.jackson.datatype:jackson-datatype-jsr310;external_dependency} --> <include>com.fasterxml.jackson.module:jackson-module-afterburner:[2.12.5]</include> <!-- {x-include-update;cosmos_com.fasterxml.jackson.module:jackson-module-afterburner;external_dependency} --> <include>io.dropwizard.metrics:metrics-core:[4.1.0]</include> <!-- {x-include-update;cosmos_io.dropwizard.metrics:metrics-core;external_dependency} --> <include>io.micrometer:micrometer-core:[1.8.0]</include> <!-- {x-include-update;io.micrometer:micrometer-core;external_dependency} --> <include>org.slf4j:slf4j-api:[1.7.32]</include> <!-- {x-include-update;org.slf4j:slf4j-api;external_dependency} --> <include>org.hdrhistogram:HdrHistogram:[2.1.12]</include> <!-- {x-include-update;cosmos_org.hdrhistogram:HdrHistogram;external_dependency} --> </includes> </bannedDependencies> </rules> </configuration> </plugin> </plugins> </build> <profiles> <profile> <!-- unit test --> <id>unit</id> <properties> <env>default</env> <test.groups>unit</test.groups> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} --> <configuration> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB endpoint --> <id>fast</id> <properties> <test.groups>simple,cosmosv3</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/fast-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB endpoint --> <id>long</id> <properties> <test.groups>long</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/long-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB endpoint --> <id>direct</id> <properties> <test.groups>direct</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/direct-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB endpoint with multi master support --> <id>multi-master</id> <properties> <test.groups>multi-master</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/multi-master-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB endpoint with multi region support --> <id>multi-region</id> <properties> <test.groups>multi-region</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/multi-region-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB endpoint --> <id>examples</id> <properties> <!-- reset the test group as examples have no test group --> <test.groups>samples,examples</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/examples-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB Emulator Endpoint --> <id>emulator</id> <properties> <test.groups>emulator</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/emulator-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- integration tests, requires Cosmos DB Emulator Endpoint --> <id>non-emulator</id> <properties> <test.groups>non-emulator</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/non-emulator-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- e2e integration tests, requires Cosmos DB endpoint --> <id>e2e</id> <properties> <test.groups>e2e</test.groups> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-failsafe-plugin;external_dependency} --> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/e2e-testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>