Skip to content

Commit c84de5d

Browse files
authored
Use Profiles to Enable OS Specific Dependencies (Azure#21223)
1 parent 8e6f502 commit c84de5d

File tree

1 file changed

+46
-5
lines changed

1 file changed

+46
-5
lines changed

sdk/core/azure-core/pom.xml

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
4848
<jacoco.min.linecoverage>0.60</jacoco.min.linecoverage>
4949
<jacoco.min.branchcoverage>0.60</jacoco.min.branchcoverage>
50+
<boring-ssl-classifier></boring-ssl-classifier>
5051
</properties>
5152

5253
<developers>
@@ -103,17 +104,18 @@
103104
<artifactId>reactor-core</artifactId>
104105
<version>3.4.7</version> <!-- {x-version-update;io.projectreactor:reactor-core;external_dependency} -->
105106
</dependency>
107+
<dependency>
108+
<groupId>io.netty</groupId>
109+
<artifactId>netty-tcnative-boringssl-static</artifactId>
110+
<version>2.0.40.Final</version> <!-- {x-version-update;io.netty:netty-tcnative-boringssl-static;external_dependency} -->
111+
<classifier>${boring-ssl-classifier}</classifier>
112+
</dependency>
106113
<dependency>
107114
<groupId>io.projectreactor</groupId>
108115
<artifactId>reactor-test</artifactId>
109116
<version>3.4.7</version> <!-- {x-version-update;io.projectreactor:reactor-test;external_dependency} -->
110117
<scope>test</scope>
111118
</dependency>
112-
<dependency>
113-
<groupId>io.netty</groupId>
114-
<artifactId>netty-tcnative-boringssl-static</artifactId>
115-
<version>2.0.40.Final</version> <!-- {x-version-update;io.netty:netty-tcnative-boringssl-static;external_dependency} -->
116-
</dependency>
117119
<dependency>
118120
<groupId>org.junit.jupiter</groupId>
119121
<artifactId>junit-jupiter-api</artifactId>
@@ -274,5 +276,44 @@
274276
</plugins>
275277
</build>
276278
</profile>
279+
280+
<profile>
281+
<id>native-linux</id>
282+
<activation>
283+
<property>
284+
<name>native-linux</name>
285+
</property>
286+
</activation>
287+
288+
<properties>
289+
<boring-ssl-classifier>linux-x86_64</boring-ssl-classifier>
290+
</properties>
291+
</profile>
292+
293+
<profile>
294+
<id>native-macos</id>
295+
<activation>
296+
<property>
297+
<name>native-macos</name>
298+
</property>
299+
</activation>
300+
301+
<properties>
302+
<boring-ssl-classifier>osx-x86_64</boring-ssl-classifier>
303+
</properties>
304+
</profile>
305+
306+
<profile>
307+
<id>native-windows</id>
308+
<activation>
309+
<property>
310+
<name>native-windows</name>
311+
</property>
312+
</activation>
313+
314+
<properties>
315+
<boring-ssl-classifier>windows-x86_64</boring-ssl-classifier>
316+
</properties>
317+
</profile>
277318
</profiles>
278319
</project>

0 commit comments

Comments
 (0)