Skip to content
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ This buildpack provides the [Adoptium](https://adoptium.net/) JDK and JRE.
### Java Version

The buildpack will automatically determine the Java version from metadata(it will have JavaVersion as json attribute). The default Java version is 8. For Mendix 8 and above, the default Java version is 11.
Metadata JavaVersion attribute will have these values "11", "17" or in the future "21".
Metadata JavaVersion attribute will have these values "11", "17", "21" or "25".

We do not recommend overriding the Java version for the buildpack. However, for cases where this is required, the `JAVA_VERSION` variable can be used to override the version number.

Expand Down
2 changes: 2 additions & 0 deletions buildpack/core/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def get_java_major_version(runtime_version, build_path=BASE_PATH):
result = 17
elif 21 == result:
result = 21
elif 25 == result:
result = 25
else:
result = 11
major_version = _get_major_version(result)
Expand Down
1 change: 1 addition & 0 deletions dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dependencies:
- "11": 11.0.33
- "17": 17.0.21
- "21": 21.0.13
- "25": 25.0.1
logs:
mendix-logfilter:
artifact: logs/mendix-logfilter-{{version}}.tar.gz
Expand Down
Loading