Skip to content

Upgrade Java runtime from 17 to 21 (latest LTS)#16

Open
paulyuk wants to merge 2 commits intoAzure-Samples:mainfrom
paulyuk:upgrade-java-21
Open

Upgrade Java runtime from 17 to 21 (latest LTS)#16
paulyuk wants to merge 2 commits intoAzure-Samples:mainfrom
paulyuk:upgrade-java-21

Conversation

@paulyuk
Copy link
Contributor

@paulyuk paulyuk commented Feb 21, 2026

Summary

Upgrades the Java runtime from 17 to 21, which is the latest LTS version supported by Azure Functions.

Changes

infra/main.bicep

  • Changed runtimeVersion: '17' to runtimeVersion: '21'

http/pom.xml

  • Changed <java.version>17</java.version> to <java.version>21</java.version>
  • Changed <javaVersion>17</javaVersion> to <javaVersion>21</javaVersion>

Why This Change?

Java 21 is the latest LTS (Long Term Support) version with:

  • Virtual Threads (Project Loom) - improved concurrency
  • Pattern Matching for switch
  • Record Patterns
  • Better performance and GC improvements

Fixes #15

paulyuk and others added 2 commits February 21, 2026 11:32
Fixes Azure-Samples#15

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade Java runtime from 17 to 21 (latest LTS)

1 participant