|
11 | 11 | </parent> |
12 | 12 |
|
13 | 13 | <artifactId>shared-resources</artifactId> |
14 | | - <version>3.0.1</version> |
| 14 | + <version>4.0.0-test-SNAPSHOT</version> |
15 | 15 | <packaging>jar</packaging> |
16 | 16 |
|
17 | 17 | <name>Java shared resources</name> |
|
38 | 38 | <url>https://github.com/valitydev/java-shared-resources/tree/master</url> |
39 | 39 | </scm> |
40 | 40 |
|
| 41 | + <properties> |
| 42 | + <opentelemetry.javaagent.version>2.22.0</opentelemetry.javaagent.version> |
| 43 | + </properties> |
| 44 | + |
41 | 45 | <dependencies> |
42 | 46 | <dependency> |
43 | 47 | <groupId>org.springframework.boot</groupId> |
|
55 | 59 | <artifactId>janino</artifactId> |
56 | 60 | <version>3.1.9</version> |
57 | 61 | </dependency> |
| 62 | + <dependency> |
| 63 | + <groupId>io.opentelemetry.javaagent</groupId> |
| 64 | + <artifactId>opentelemetry-javaagent</artifactId> |
| 65 | + <version>${opentelemetry.javaagent.version}</version> |
| 66 | + </dependency> |
| 67 | + <dependency> |
| 68 | + <groupId>io.opentelemetry.instrumentation</groupId> |
| 69 | + <artifactId>opentelemetry-logback-mdc-1.0</artifactId> |
| 70 | + <version>2.22.0-alpha</version> |
| 71 | + <scope>runtime</scope> |
| 72 | + </dependency> |
58 | 73 | </dependencies> |
59 | 74 |
|
60 | 75 | <build> |
61 | 76 | <plugins> |
| 77 | + <plugin> |
| 78 | + <groupId>org.apache.maven.plugins</groupId> |
| 79 | + <artifactId>maven-dependency-plugin</artifactId> |
| 80 | + <version>3.6.1</version> |
| 81 | + <executions> |
| 82 | + <execution> |
| 83 | + <id>copy-opentelemetry-javaagent</id> |
| 84 | + <phase>process-resources</phase> |
| 85 | + <goals> |
| 86 | + <goal>copy</goal> |
| 87 | + </goals> |
| 88 | + <configuration> |
| 89 | + <artifactItems> |
| 90 | + <artifactItem> |
| 91 | + <groupId>io.opentelemetry.javaagent</groupId> |
| 92 | + <artifactId>opentelemetry-javaagent</artifactId> |
| 93 | + <version>${opentelemetry.javaagent.version}</version> |
| 94 | + <type>jar</type> |
| 95 | + <overWrite>true</overWrite> |
| 96 | + <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 97 | + <destFileName>opentelemetry-javaagent.jar</destFileName> |
| 98 | + </artifactItem> |
| 99 | + </artifactItems> |
| 100 | + </configuration> |
| 101 | + </execution> |
| 102 | + </executions> |
| 103 | + </plugin> |
62 | 104 | <plugin> |
63 | 105 | <artifactId>maven-remote-resources-plugin</artifactId> |
64 | 106 | <version>3.0.0</version> |
|
0 commit comments