spring-cloud-azure-starter-monitor
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.azure.spring</groupId> <artifactId>spring-cloud-azure-starter-monitor</artifactId> <version>1.0.0-beta.6</version> </dependency>
<?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> <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> <properties> <jdk.version>8</jdk.version> <jdk-test.version>8</jdk-test.version> <maven.compiler.source>${jdk.version}</maven.compiler.source> <maven.compiler.target>${jdk.version}</maven.compiler.target> <maven.compiler.testSource>${jdk-test.version}</maven.compiler.testSource> <maven.compiler.testTarget>${jdk-test.version}</maven.compiler.testTarget> <jacoco.skip>true</jacoco.skip> <!--Most of the tests are done in the spring-cloud-azure-starter-monitor-test module--> </properties> <groupId>com.azure.spring</groupId> <artifactId>spring-cloud-azure-starter-monitor</artifactId> <version>1.0.0-beta.6</version> <!-- {x-version-update;com.azure.spring:spring-cloud-azure-starter-monitor;current} --> <name>Azure Monitor OpenTelemetry Distro / Application Insights in Spring native Java application</name> <description>Spring Boot starter providing telemetry data to Azure Monitor for Spring Boot applications and GraalVM native images.</description> <distributionManagement> <site> <id>azure-java-build-docs</id> <url>${site.url}/site/${project.artifactId}</url> </site> </distributionManagement> <scm> <url>https://github.com/Azure/azure-sdk-for-java</url> </scm> <dependencies> <!-- OTel dependencies --> <dependency> <groupId>io.opentelemetry.instrumentation</groupId> <artifactId>opentelemetry-spring-boot-starter</artifactId> <version>2.4.0-alpha</version> <!-- {x-version-update;io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter;external_dependency} --> </dependency> <dependency> <groupId>io.opentelemetry.instrumentation</groupId> <artifactId>opentelemetry-jdbc</artifactId> <version>2.4.0-alpha</version><!-- {x-version-update;io.opentelemetry.instrumentation:opentelemetry-jdbc;external_dependency} --> <scope>provided</scope> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId> <version>1.38.0</version> <!-- {x-version-update;io.opentelemetry:opentelemetry-sdk-extension-autoconfigure;external_dependency} --> </dependency> <dependency> <groupId>io.opentelemetry.instrumentation</groupId> <artifactId>opentelemetry-runtime-telemetry-java8</artifactId> <version>2.4.0-alpha</version> <!-- {x-version-update;io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8;external_dependency} --> </dependency> <!-- Redeclaration of the OpenTelemetry exporter dependencies if Spring Monitor is released and the OpenTelemetry exporter on Maven has older OpenTelemetry versions --> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-api</artifactId> <version>1.38.0</version> <!-- {x-version-update;io.opentelemetry:opentelemetry-api;external_dependency} --> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk</artifactId> <version>1.38.0</version> <!-- {x-version-update;io.opentelemetry:opentelemetry-sdk;external_dependency} --> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-metrics</artifactId> <version>1.38.0</version> <!-- {x-version-update;io.opentelemetry:opentelemetry-sdk-metrics;external_dependency} --> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-logs</artifactId> <version>1.38.0</version> <!-- {x-version-update;io.opentelemetry:opentelemetry-sdk-logs;external_dependency} --> </dependency> <dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-extension-autoconfigure-spi</artifactId> <version>1.38.0</version> <!-- {x-version-update;io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi;external_dependency} --> </dependency> <!-- End of redeclaration of the OpenTelemetry exporter dependencies --> <!-- End of OTel dependencies --> <dependency> <groupId>com.azure</groupId> <artifactId>azure-monitor-opentelemetry-exporter</artifactId> <version>1.0.0-beta.25</version> <!-- {x-version-update;com.azure:azure-monitor-opentelemetry-exporter;dependency} --> </dependency> <!-- Test dependencies --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.9.3</version> <!-- {x-version-update;org.junit.jupiter:junit-jupiter-api;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.9.3</version> <!-- {x-version-update;org.junit.jupiter:junit-jupiter-engine;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.22.0</version> <!-- {x-version-update;org.assertj:assertj-core;external_dependency} --> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>2.7.18</version> <!-- {x-version-update;org.springframework.boot:spring-boot-starter-test;external_dependency} --> <scope>test</scope> </dependency> <!-- End of test dependencies --> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.4.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-enforcer-plugin;external_dependency} --> <configuration> <rules> <bannedDependencies> <includes> <include>io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter:[2.4.0-alpha]</include> <!-- {x-include-update;io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter;external_dependency} --> <include>io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:[1.38.0]</include> <!-- {x-include-update;io.opentelemetry:opentelemetry-sdk-extension-autoconfigure;external_dependency} --> <include>io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8:[2.4.0-alpha]</include> <!-- {x-include-update;io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8;external_dependency} --> <include>io.opentelemetry:opentelemetry-api:[1.38.0]</include> <!-- {x-include-update;io.opentelemetry:opentelemetry-api;external_dependency} --> <include>io.opentelemetry:opentelemetry-sdk:[1.38.0]</include> <!-- {x-include-update;io.opentelemetry:opentelemetry-sdk;external_dependency} --> <include>io.opentelemetry:opentelemetry-sdk-metrics:[1.38.0]</include> <!-- {x-include-update;io.opentelemetry:opentelemetry-sdk-metrics;external_dependency} --> <include>io.opentelemetry:opentelemetry-sdk-logs:[1.38.0]</include> <!-- {x-include-update;io.opentelemetry:opentelemetry-sdk-logs;external_dependency} --> <include>io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:[1.38.0]</include> <!-- {x-include-update;io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi;external_dependency} --> <include>io.opentelemetry.instrumentation:opentelemetry-jdbc:[2.4.0-alpha]</include> <!-- {x-include-update;io.opentelemetry.instrumentation:opentelemetry-jdbc;external_dependency} --> </includes> </bannedDependencies> </rules> </configuration> </plugin> <!-- START: Empty Java Doc --> <!-- The following code will generate an empty javadoc with just a README.md. This is necessary to pass the required checks on Maven. The way this works is by setting the classesDirectory to a directory that only contains the README.md, which we need to copy. If the classesDirectory is set to the root, where the README.md lives, it still won't have javadocs but the jar file will contain a bunch of files that shouldn't be there. The faux sources directory is deleted and recreated with the README.md being copied every time to guarantee that, when building locally, it'll have the latest copy of the README.md file. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.6.3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} --> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <skip>true</skip> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.3.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} --> <executions> <execution> <id>empty-javadoc-jar-with-readme</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>javadoc</classifier> <classesDirectory>${project.basedir}/javadocTemp</classesDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.1.0</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} --> <executions> <execution> <id>copy-readme-to-javadocTemp</id> <phase>prepare-package</phase> <configuration> <target> <echo>Deleting existing ${project.basedir}/javadocTemp</echo> <delete includeEmptyDirs="true" quiet="true"> <fileset dir="${project.basedir}/javadocTemp"/> </delete> <echo>Copying ${project.basedir}/README.md to ${project.basedir}/javadocTemp/README.md </echo> <copy file="${project.basedir}/README.md" tofile="${project.basedir}/javadocTemp/README.md"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <!-- END: Empty Java Doc --> </plugins> </build> </project>