Skip to content

Commit 339dfd0

Browse files
committed
add shaded azure-identity in case user doesn't include it
1 parent 619b528 commit 339dfd0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
<version>${mockito-core.version}</version>
130130
<scope>test</scope>
131131
</dependency>
132+
<dependency>
133+
<groupId>com.azure</groupId>
134+
<artifactId>azure-identity</artifactId>
135+
<version>1.15.4</version>
136+
</dependency>
132137
</dependencies>
133138
<build>
134139
<extensions>
@@ -218,6 +223,13 @@
218223
<exclude>META-INF/*.RSA</exclude>
219224
</excludes>
220225
</filter>
226+
<filter>
227+
<artifact>*:jackson-core</artifact>
228+
<excludes>
229+
<exclude>META-INF/versions/17/**</exclude>
230+
<exclude>META-INF/versions/21/**</exclude>
231+
</excludes>
232+
</filter>
221233
</filters>
222234
<relocations>
223235
<relocation combine.children="append">
@@ -277,6 +289,16 @@
277289
<pattern>javax.annotation</pattern>
278290
<shadedPattern>com.microsoft.azure.functions.shaded.javax.annotation</shadedPattern>
279291
</relocation>
292+
<!-- relocate azure-identity -->
293+
<relocation combine.children="append">
294+
<pattern>com.azure.identity</pattern>
295+
<shadedPattern>com.microsoft.azure.functions.shaded.com.azure.identity</shadedPattern>
296+
</relocation>
297+
<!-- relocate azure-core credential classes -->
298+
<relocation combine.children="append">
299+
<pattern>com.azure.core.credential</pattern>
300+
<shadedPattern>com.microsoft.azure.functions.shaded.com.azure.core.credential</shadedPattern>
301+
</relocation>
280302
</relocations>
281303
</configuration>
282304
</execution>

0 commit comments

Comments
 (0)