brave-instrumentation-spring-web
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.zipkin.brave</groupId> <artifactId>brave-instrumentation-spring-web</artifactId> <version>6.0.2</version> </dependency>
<?xml version="1.0"?> <!-- Copyright 2013-2024 The OpenZipkin Authors 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"> <parent> <groupId>io.zipkin.brave</groupId> <artifactId>brave-instrumentation-parent</artifactId> <version>6.0.2</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>brave-instrumentation-spring-web</artifactId> <name>Brave Instrumentation: Spring Rest Template</name> <properties> <!-- Matches Export-Package in bnd.bnd --> <module.name>brave.spring.web</module.name> <main.basedir>${project.basedir}/../..</main.basedir> </properties> <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artifactId>brave-instrumentation-http</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <!-- TODO: revlocked at spring 5. We may need a new module for v6 --> <version>${spring5.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jvnet</groupId> <artifactId>animal-sniffer-annotation</artifactId> <version>1.0</version> <!-- annotations are not runtime retention, so don't need a runtime dep --> <scope>provided</scope> </dependency> <!-- needed for org.springframework.util.concurrent.ListenableFuture used by AsyncClientHttpRequestInterceptor --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring5.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>brave-instrumentation-http-tests</artifactId> <version>${project.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring5.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${httpclient.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpasyncclient</artifactId> <version>${httpasyncclient.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-invoker-plugin</artifactId> </plugin> <plugin> <groupId>de.qaware.maven</groupId> <artifactId>go-offline-maven-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>resolve-dependencies</goal> </goals> </execution> </executions> <configuration> <!-- Add dependencies specific to invoker tests so that they cache on go-offline --> <dynamicDependencies> <DynamicDependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring3.version}</version> <repositoryType>MAIN</repositoryType> <type>jar</type> </DynamicDependency> </dynamicDependencies> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>release</id> <properties> <!-- Spring is Java 1.6 bytecode --> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> <!-- Clear the release tag, so that we can compile ListenableFuture instrumentation, without errors and without changing the end bytecode to 1.8 --> <maven.compiler.release /> </properties> <build> <plugins> <plugin> <artifactId>maven-enforcer-plugin</artifactId> <version>${maven-enforcer-plugin.version}</version> <executions> <execution> <id>enforce-java</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <!-- The only LTS JDK we support that can compile 1.6 bytecode is 11. https://www.oracle.com/java/technologies/javase/12-relnote-issues.html --> <requireJavaVersion> <version>[11,12)</version> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>