Skip to content

Commit

Permalink
Ensure the SK is built for JDK 8 release (#1394)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com>
  • Loading branch information
brunoborges and markwallace-microsoft authored Jun 12, 2023
1 parent 9e40446 commit 825cbca
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
16 changes: 16 additions & 0 deletions java/api-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<packaging>pom</packaging>

<properties>
<maven.compiler-plugin.version>3.11.0</maven.compiler-plugin.version>
<maven.compiler.release>17</maven.compiler.release>
</properties>

Expand All @@ -37,4 +38,19 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler-plugin.version}</version>
<configuration>
<source>${maven.compiler.release}</source>
<target>${maven.compiler.release}</target>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
</plugins>
</build>

</project>
3 changes: 3 additions & 0 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
<configuration>
<source>${maven.compiler.release}</source>
<target>${maven.compiler.release}</target>
<release>8</release>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -538,6 +539,8 @@
<configuration>
<source>${maven.compiler.release}</source>
<target>${maven.compiler.release}</target>
<!-- Ensure we compile against JDK 8 APIs -->
<release>8</release>
<encoding>${project.build.sourceEncoding}</encoding>
<showWarnings>true</showWarnings>
<compilerArgs>
Expand Down
18 changes: 16 additions & 2 deletions java/samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
<com.uber.nullaway.version>0.10.10</com.uber.nullaway.version>
<google.errorprone.core.version>2.19.1</google.errorprone.core.version>
<log4j2.version>2.20.0</log4j2.version>
<maven.compiler.plugin.version>3.11.0</maven.compiler.plugin.version>
<maven.compiler-plugin.version>3.11.0</maven.compiler-plugin.version>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.source>17</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>17</maven.compiler.target>
</properties>
Expand All @@ -36,6 +35,21 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler-plugin.version}</version>
<configuration>
<source>${maven.compiler.release}</source>
<target>${maven.compiler.release}</target>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.microsoft.semantickernel</groupId>
Expand Down

0 comments on commit 825cbca

Please sign in to comment.