Skip to content

Commit 4e2de55

Browse files
Merge pull request #264715 from MadhuraBharadwaj-MSFT/patch-23
Update functions-reference-java.md
2 parents b203e48 + 714629f commit 4e2de55

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/azure-functions/functions-reference-java.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,22 +150,22 @@ The following table shows current supported Java versions for each major version
150150

151151
| Functions version | Java versions (Windows) | Java versions (Linux) |
152152
| ----- | ----- | --- |
153-
| 4.x |17 <br/>11 <br/>8 |17 <br/>11 <br/>8 |
153+
| 4.x | 17 <br/>11 <br/>8 | 21 (Preview) <br/>17 <br/>11 <br/>8 |
154154
| 3.x | 11 <br/>8 | 11 <br/>8 |
155155
| 2.x | 8 | n/a |
156156

157157
Unless you specify a Java version for your deployment, the Maven archetype defaults to Java 8 during deployment to Azure.
158158

159159
### Specify the deployment version
160160

161-
You can control the version of Java targeted by the Maven archetype by using the `-DjavaVersion` parameter. The value of this parameter can be either `8` or `11`.
161+
You can control the version of Java targeted by the Maven archetype by using the `-DjavaVersion` parameter. The value of this parameter can be either `8`, `11`, `17` or `21`.
162162

163163
The Maven archetype generates a pom.xml that targets the specified Java version. The following elements in pom.xml indicate the Java version to use:
164164

165-
| Element | Java 8 value | Java 11 value | Java 17 value | Description |
166-
| ---- | ---- | ---- | ---- | --- |
167-
| **`Java.version`** | 1.8 | 11 | 17 | Version of Java used by the maven-compiler-plugin. |
168-
| **`JavaVersion`** | 8 | 11 | 17 | Java version hosted by the function app in Azure. |
165+
| Element | Java 8 value | Java 11 value | Java 17 value | Java 21 value (Preview, Linux) | Description |
166+
| ---- | ---- | ---- | ---- | ---- | --- |
167+
| **`Java.version`** | 1.8 | 11 | 17 | 21 | Version of Java used by the maven-compiler-plugin. |
168+
| **`JavaVersion`** | 8 | 11 | 17 | 21 | Java version hosted by the function app in Azure. |
169169

170170
The following examples show the settings for Java 8 in the relevant sections of the pom.xml file:
171171

@@ -192,7 +192,7 @@ The following example shows the operating system setting in the `runtime` sectio
192192

193193
## JDK runtime availability and support
194194

195-
Microsoft and [Adoptium](https://adoptium.net/) builds of OpenJDK are provided and supported on Functions for Java 8 (Adoptium), 11 (MSFT) and 17(MSFT). These binaries are provided as a no-cost, multi-platform, production-ready distribution of the OpenJDK for Azure. They contain all the components for building and running Java SE applications.
195+
Microsoft and [Adoptium](https://adoptium.net/) builds of OpenJDK are provided and supported on Functions for Java 8 (Adoptium), Java 11, 17 and 21 (MSFT). These binaries are provided as a no-cost, multi-platform, production-ready distribution of the OpenJDK for Azure. They contain all the components for building and running Java SE applications.
196196

197197
For local development or testing, you can download the [Microsoft build of OpenJDK](/java/openjdk/download) or [Adoptium Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot) binaries for free. [Azure support](https://azure.microsoft.com/support/) for issues with the JDKs and function apps is available with a [qualified support plan](https://azure.microsoft.com/support/plans/).
198198

0 commit comments

Comments
 (0)