Skip to content

Commit ad8987a

Browse files
author
Nikita Kozlov
committed
Created a shadow version of the java-common
1 parent 01b7651 commit ad8987a

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@
6666
<module>common</module>
6767
<module>example</module>
6868
<module>bundle-test</module>
69+
<module>shadow</module>
6970
</modules>
7071
</project>

shadow/pom.xml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>java-common-shadow</artifactId>
8+
<packaging>jar</packaging>
9+
10+
<parent>
11+
<artifactId>java</artifactId>
12+
<groupId>com.lightstep.tracer</groupId>
13+
<version>0.30.1</version>
14+
</parent>
15+
16+
<name>java-common-shadow</name>
17+
<description>The LightStep OpenTracing Tracer implementation for Java with shaded dependencies</description>
18+
<url>https://github.com/lightstep/lightstep-tracer-java-common</url>
19+
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-javadoc-plugin</artifactId>
25+
<version>3.1.0</version>
26+
<executions>
27+
<execution>
28+
<id>attach-javadoc</id>
29+
<goals>
30+
<goal>jar</goal>
31+
</goals>
32+
</execution>
33+
</executions>
34+
</plugin>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-shade-plugin</artifactId>
38+
<version>3.1.1</version>
39+
<executions>
40+
<execution>
41+
<phase>package</phase>
42+
<goals>
43+
<goal>shade</goal>
44+
</goals>
45+
<configuration>
46+
<shadedArtifactAttached>false</shadedArtifactAttached>
47+
<createSourcesJar>true</createSourcesJar>
48+
<shadeSourcesContent>true</shadeSourcesContent>
49+
<createDependencyReducedPom>true</createDependencyReducedPom>
50+
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
51+
<artifactSet>
52+
<excludes>
53+
<exclude>com.google.gson</exclude>
54+
<exclude>io.opentracing</exclude>
55+
</excludes>
56+
</artifactSet>
57+
<relocations>
58+
<relocation>
59+
<pattern>com.google.protobuf</pattern>
60+
<shadedPattern>lightstep.com.google.protobuf</shadedPattern>
61+
</relocation>
62+
<relocation>
63+
<pattern>google.protobuf</pattern>
64+
<shadedPattern>lightstep.google.protobuf</shadedPattern>
65+
</relocation>
66+
<relocation>
67+
<pattern>javax.annotation</pattern>
68+
<shadedPattern>lightstep.javax.annotation</shadedPattern>
69+
</relocation>
70+
<relocation>
71+
<pattern>com.google.gson</pattern>
72+
<shadedPattern>lightstep.com.google.gson</shadedPattern>
73+
</relocation>
74+
</relocations>
75+
</configuration>
76+
</execution>
77+
</executions>
78+
</plugin>
79+
</plugins>
80+
</build>
81+
82+
<dependencies>
83+
<dependency>
84+
<groupId>com.lightstep.tracer</groupId>
85+
<artifactId>java-common</artifactId>
86+
<version>0.30.1</version>
87+
</dependency>
88+
</dependencies>
89+
90+
</project>

0 commit comments

Comments
 (0)