Skip to content

Latest commit

 

History

History
executable file
·
69 lines (53 loc) · 2.85 KB

File metadata and controls

executable file
·
69 lines (53 loc) · 2.85 KB

Java (java)

Installs Java (Temurin/OpenJDK), Maven, Gradle, and Ant.

Example Usage

"features": {
    "ghcr.io/postfinance/devcontainer-features/java:1.0.0": {
        "version": "latest",
        "mavenVersion": "none",
        "gradleVersion": "none",
        "antVersion": "none",
        "downloadUrl": "",
        "versionsUrl": "",
        "latestUrl": "",
        "mavenDownloadUrl": "",
        "mavenVersionsUrl": "",
        "gradleDownloadUrl": "",
        "gradleVersionsUrl": "",
        "antDownloadUrl": "",
        "antVersionsUrl": ""
    }
}

Options

Option Description Type Default Value Proposals
version The version of Java (Temurin/OpenJDK) to install. Use a major version (e.g. '21') to get the latest patch release. string latest latest, 21, 17, 11, 21.0.5
mavenVersion The version of Maven to install. Use 'none' to skip. string none none, latest, 3.9, 3.9.9
gradleVersion The version of Gradle to install. Use 'none' to skip. string none none, latest, 8, 8.14
antVersion The version of Ant to install. Use 'none' to skip. string none none, latest, 1.10, 1.10.15
downloadUrl The download URL to use for Java (Temurin) binaries. string <empty> https://mycompany.com/artifactory/adoptium-remote/v3/binary
versionsUrl The URL to fetch the available Java (Temurin) versions from. string <empty>
latestUrl The URL to fetch the latest Java (Temurin) release information from. string <empty>
mavenDownloadUrl The download URL to use for Maven binaries. string <empty> https://mycompany.com/artifactory/apache-maven-remote
mavenVersionsUrl The URL to fetch the available Maven versions from. string <empty>
gradleDownloadUrl The download URL to use for Gradle binaries. string <empty> https://mycompany.com/artifactory/gradle-distributions-remote
gradleVersionsUrl The URL to fetch the available Gradle versions from. string <empty>
antDownloadUrl The download URL to use for Ant binaries. string <empty> https://mycompany.com/artifactory/apache-ant-remote
antVersionsUrl The URL to fetch the available Ant versions from. string <empty>

Customizations

VS Code Extensions

  • vscjava.vscode-java-pack

Notes

System Compatibility

Debian, Ubuntu

Accessed Urls

Needs access to the following URLs for downloading and resolving Java (Temurin/OpenJDK):

Needs access to the following URL for downloading and resolving Maven:

Needs access to the following URLs for downloading and resolving Gradle:

Needs access to the following URL for downloading and resolving Ant: