Supported versions
You can select the major version. But the latest compatible minor version is applied automatically and can’t be overridden. Patch versions are applied periodically for bug fixes and the like. When you deploy your app, you always get the latest available patches.
OpenJDK versions:
- 25
- 21
- 17
These versions refer to the headless packages of OpenJDK. To save space and reduce potential vulnerabilities, they don’t contain GUI classes, which can’t be used on the server.
Deprecated versions
The following versions are still available in your projects, but they’re at their end of life and are no longer receiving security updates from upstream. No deprecated versions. To ensure your project remains stable in the future, switch to a supported version.
Retired versions
The following versions have been retired and are no longer available. If your project uses a retired version, you must update to a supported version.
- 19
- 18
- 14
- 13
- 12
- 11
- 8
Specify the language
To use Java, specify java as your app’s type:
For example:
Support build automation
Upsun supports the most common project management tools in the Java ecosystem, including:
Manage Maven versions
Java containers come with a version of Maven already installed. You may need to use a specific different version to manage your project. If the version you need differs from the version on your container, you can install the specific version that you need. Add something like the following to your app configuration:
Other JVM languages
It’s worth remembering that the JVM by its specification doesn’t read Java code, but bytecode. So within the JVM, it’s possible to run several languages. Upsun supports several of them, such as Kotlin, Groovy, and Scala, so long as that language works with any build automation that Upsun supports.
| Article | Link |
|---|---|
| Kotlin and Spring | Source |
| Scala and Spring | Source |
Accessing services
You can access service credentials to connect to managed services from environment variables present in the application container. Consult each of the individual service documentation to see how to retrieve and surface credentials into your application.