Skip to content

Commit

Permalink
fix: shade async-profiler packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengziyi committed Nov 5, 2024
1 parent 39b2397 commit 9806c91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions apm-sniffer/apm-agent-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
<shade.org.slf4j.target>${shade.package}.${shade.org.slf4j.source}</shade.org.slf4j.target>
<ststem-rules.version>1.18.0</ststem-rules.version>
<slf4j.version>1.7.25</slf4j.version>
<shade.one.profiler.source>one.profiler</shade.one.profiler.source>
<shade.one.profiler.target>${shade.package}.${shade.one.profiler.source}</shade.one.profiler.target>
</properties>

<dependencies>
Expand Down Expand Up @@ -226,6 +228,7 @@
<exclude>org.checkerframework:checker-compat-qual:jar:</exclude>
<exclude>org.checkerframework:checker-qual:jar:</exclude>
<exclude>org.codehaus.mojo:animal-sniffer-annotations:jar:</exclude>
<!-- <exclude>tools.profiler:async-profiler:jar:</exclude>-->
</excludes>
</artifactSet>
<relocations>
Expand Down Expand Up @@ -253,6 +256,10 @@
<pattern>${shade.org.slf4j.source}</pattern>
<shadedPattern>${shade.org.slf4j.target}</shadedPattern>
</relocation>
<relocation>
<pattern>${shade.one.profiler.source}</pattern>
<shadedPattern>${shade.one.profiler.target}</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
Expand Down
7 changes: 1 addition & 6 deletions apm-sniffer/apm-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
<can.retransform.classes>true</can.retransform.classes>
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>
<shade.one.profiler.source>one.profiler</shade.one.profiler.source>
<shade.one.profiler.target>${shade.package}.${shade.one.profiler.source}</shade.one.profiler.target>
</properties>

<dependencies>
Expand Down Expand Up @@ -94,17 +92,14 @@
<exclude>org.codehaus.mojo:animal-sniffer-annotations</exclude>
<exclude>io.perfmark:*</exclude>
<exclude>org.slf4j:*</exclude>
<exclude>tools.profiler:async-profiler</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>${shade.net.bytebuddy.source}</pattern>
<shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
</relocation>
<relocation>
<pattern>${shade.one.profiler.source}</pattern>
<shadedPattern>${shade.one.profiler.target}</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
Expand Down

0 comments on commit 9806c91

Please sign in to comment.