{"id":15069519,"url":"https://github.com/themrmilchmann/install-jdk","last_synced_at":"2025-10-05T08:31:06.364Z","repository":{"id":103649493,"uuid":"225899214","full_name":"TheMrMilchmann/install-jdk","owner":"TheMrMilchmann","description":"An action to download and install JDKs for use in workflows.","archived":true,"fork":false,"pushed_at":"2020-03-17T14:25:33.000Z","size":137,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-30T14:03:24.829Z","etag":null,"topics":["adoptopenjdk","github-actions","install-jdk","java","jdk","openjdk","setup-java"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheMrMilchmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-04T15:31:37.000Z","updated_at":"2023-01-28T15:24:37.000Z","dependencies_parsed_at":"2023-05-24T06:30:22.053Z","dependency_job_id":null,"html_url":"https://github.com/TheMrMilchmann/install-jdk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Finstall-jdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Finstall-jdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Finstall-jdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrMilchmann%2Finstall-jdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMrMilchmann","download_url":"https://codeload.github.com/TheMrMilchmann/install-jdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235378586,"owners_count":18980471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adoptopenjdk","github-actions","install-jdk","java","jdk","openjdk","setup-java"],"created_at":"2024-09-25T01:42:59.204Z","updated_at":"2025-10-05T08:31:01.036Z","avatar_url":"https://github.com/TheMrMilchmann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecation Notice\n\n**As of 17. Mar, 2020, this project has been deprecated. An updated and\nmaintained version can be found at [AdoptOpenJDK/install-jdk](https://github.com/AdoptOpenJDK/install-jdk).\nThis repository will remain available indefinitely, but switching is strongly\nrecommended as used services might not.**\n\n\u003e# install-jdk\n\u003e\n\u003eAn action to download and install JDKs for use in workflows.\n\u003e\n\u003eThis action is based on the [actions/setup-java](https://github.com/actions/setup-java)\n\u003eaction by GitHub which works perfectly fine for simple workflows but does not\n\u003escale and lacks configurability.\n\u003e\n\u003eJDKs are downloaded from [AdoptOpenJDK](https://adoptopenjdk.net/).\n\u003e\n\u003e\n\u003e## Usage\n\u003e\n\u003eSee [action.yml](action.yml)\n\u003e\n\u003e#### Basic\n\u003e\n\u003e```\n\u003esteps:\n\u003e- uses: actions/checkout@v1\n\u003e- uses: TheMrMilchmann/install-jdk@v1\n\u003e  with:\n\u003e    version: '13'\n\u003e    architecture: x64\n\u003e```\n\u003e\n\u003e#### Multiple JDKs\n\u003e\n\u003eSome projects may require multiple JDK versions to build. `install-jdk` supports\n\u003einstalling JDKs to one (or more) given `target` environment variables.\n\u003e\n\u003e```\n\u003e- uses: actions/checkout@v1\n\u003e- uses: TheMrMilchmann/install-jdk@v1\n\u003e  with:\n\u003e    version: '8'\n\u003e    architecture: x64\n\u003e- uses: TheMrMilchmann/install-jdk@v1\n\u003e  with:\n\u003e    version: '13'\n\u003e    architecture: x64\n\u003e    targets: 'JDK_13'\n\u003e```\n\u003e\n\u003e\n\u003e### Configuration:\n\u003e\n\u003e| Parameter          | Default     |\n\u003e|--------------------|-------------|\n\u003e| `version`          |             |\n\u003e| `architecture`     | `x64`       |\n\u003e| `source`           |             |\n\u003e| `archiveExtension` |             |\n\u003e| `targets`          | `JAVA_HOME` |\n\u003e\n\u003e#### `version`\n\u003e\n\u003eThe Java version to install a JDK for. (Supported values are: `1.8`, `8`, `9`,\n\u003e`10`, `11`, `12`, `13`, ...)\n\u003e\n\u003eBy default, this action will try to install the latest JDK release for the\n\u003especified version from AdoptOpenJDK. Alternatively, a `source` can be specified\n\u003eexplicitly.\n\u003e\n\u003eThe `version` key should be set accordingly for custom downloads since it is\n\u003eused to cache JDKs which are used multiple times during the workflow.\n\u003e\n\u003e#### `architecture`\n\u003e\n\u003eThe target architecture of the JDK to install.\n\u003e\n\u003eDefaults to `x64`.\n\u003e\n\u003e#### `source`\n\u003e\n\u003eA custom source location of a JDK. This might be either a local directory,\n\u003ea compressed file, or an url.\n\u003e\n\u003e#### `archiveExtension`\n\u003e\n\u003eThe extension of the JDK archive. (Supported values are: `.zip`, `.tar`, `.7z`)\n\u003e\n\u003eSpecifying this property is required when a custom `source` is set.\n\u003e\n\u003e#### `targets`\n\u003e\n\u003eA semicolon-separated list of environment variables which will be set up to\n\u003epoint to the installation directory of the JDK.\n\u003e\n\u003eBy default, this is set to `JAVA_HOME`. Keep in mind that this is overwritten\n\u003ewhen specifying targets explicitly. Thus, if you want to make a JDK available\n\u003efrom - say - `JDK_X` and `JAVA_HOME`, you would need to specify:\n\u003e\n\u003e    targets: 'JDK_X;JAVA_HOME'\n\u003e\n\u003e\n\u003e## License\n\u003e\n\u003e```\n\u003eCopyright (c) 2018 GitHub, Inc. and contributors\n\u003eCopyright (c) 2019-2020 Leon Linhart\n\u003e\n\u003ePermission is hereby granted, free of charge, to any person obtaining a copy\n\u003eof this software and associated documentation files (the \"Software\"), to deal\n\u003ein the Software without restriction, including without limitation the rights\n\u003eto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\u003ecopies of the Software, and to permit persons to whom the Software is\n\u003efurnished to do so, subject to the following conditions:\n\u003e\n\u003eThe above copyright notice and this permission notice shall be included in all\n\u003ecopies or substantial portions of the Software.\n\u003e\n\u003eTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003eIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\u003eFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\u003eAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\u003eLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\u003eOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\u003eSOFTWARE.\n\u003e```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemrmilchmann%2Finstall-jdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemrmilchmann%2Finstall-jdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemrmilchmann%2Finstall-jdk/lists"}