Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/core/azure-core-http-jdk-httpclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
</build>

<profiles>
<!-- Library cannot build for Java 10 and below -->
<!-- Library cannot build for Java 11 and below -->
<profile>
<id>java8</id>
<activation>
Expand Down
18 changes: 6 additions & 12 deletions sdk/parents/azure-client-sdk-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@
</configuration>
<executions>
<!-- compile first with VM's default Java version -->
<!-- this will generate module-info with major class version 61 or higher (i.e Java 17 or higher) -->
<!-- this will generate module-info with major class version based on the Java version being used, in CI this should be 61 (i.e Java 17) -->
<execution>
<id>default-compile</id>
<goals>
Expand All @@ -985,6 +985,7 @@
<release>${java.vm.specification.version}</release>
</configuration>
</execution>

<!-- then compile with Java 11 as the base version that supports module-info -->
<!-- this is the Azure SDK baseline for jars that are released to Maven and should only be updated
when the Azure SDK policy is changed -->
Expand All @@ -996,8 +997,12 @@
</goals>
<configuration>
<release>11</release>
<includes>
<include>module-info.java</include>
</includes>
</configuration>
</execution>

<!-- then compile without module-info for Java 8 -->
<execution>
<id>base-compile</id>
Expand All @@ -1023,17 +1028,6 @@
</configuration>
</execution>

<!-- compile tests with Java 11 -->
<execution>
<id>base-modules-testCompile</id>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<testRelease>11</testRelease>
</configuration>
</execution>

<!-- then compile with Java 8 -->
<execution>
<id>base-testCompile</id>
Expand Down