Skip to content

Commit

Permalink
Use Profiles to Enable OS Specific Dependencies (#21223)
Browse files Browse the repository at this point in the history
  • Loading branch information
alzimmermsft authored Jul 22, 2021
1 parent 8e6f502 commit c84de5d
Showing 1 changed file with 46 additions and 5 deletions.
51 changes: 46 additions & 5 deletions sdk/core/azure-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
<jacoco.min.linecoverage>0.60</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.60</jacoco.min.branchcoverage>
<boring-ssl-classifier></boring-ssl-classifier>
</properties>

<developers>
Expand Down Expand Up @@ -103,17 +104,18 @@
<artifactId>reactor-core</artifactId>
<version>3.4.7</version> <!-- {x-version-update;io.projectreactor:reactor-core;external_dependency} -->
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>2.0.40.Final</version> <!-- {x-version-update;io.netty:netty-tcnative-boringssl-static;external_dependency} -->
<classifier>${boring-ssl-classifier}</classifier>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<version>3.4.7</version> <!-- {x-version-update;io.projectreactor:reactor-test;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>2.0.40.Final</version> <!-- {x-version-update;io.netty:netty-tcnative-boringssl-static;external_dependency} -->
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
Expand Down Expand Up @@ -274,5 +276,44 @@
</plugins>
</build>
</profile>

<profile>
<id>native-linux</id>
<activation>
<property>
<name>native-linux</name>
</property>
</activation>

<properties>
<boring-ssl-classifier>linux-x86_64</boring-ssl-classifier>
</properties>
</profile>

<profile>
<id>native-macos</id>
<activation>
<property>
<name>native-macos</name>
</property>
</activation>

<properties>
<boring-ssl-classifier>osx-x86_64</boring-ssl-classifier>
</properties>
</profile>

<profile>
<id>native-windows</id>
<activation>
<property>
<name>native-windows</name>
</property>
</activation>

<properties>
<boring-ssl-classifier>windows-x86_64</boring-ssl-classifier>
</properties>
</profile>
</profiles>
</project>

0 comments on commit c84de5d

Please sign in to comment.