{"id":13512324,"url":"https://github.com/AdoptOpenJDK/homebrew-openjdk","last_synced_at":"2025-03-30T22:32:29.983Z","repository":{"id":37617196,"uuid":"126739710","full_name":"AdoptOpenJDK/homebrew-openjdk","owner":"AdoptOpenJDK","description":"AdoptOpenJDK HomeBrew Tap","archived":true,"fork":false,"pushed_at":"2023-09-07T06:34:40.000Z","size":374,"stargazers_count":1823,"open_issues_count":4,"forks_count":102,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-01-18T20:36:42.592Z","etag":null,"topics":["hacktoberfest","homebrew","homebrew-tap"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdoptOpenJDK.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":"SECURITY.md","support":null,"governance":null}},"created_at":"2018-03-25T20:59:07.000Z","updated_at":"2025-01-07T02:07:40.000Z","dependencies_parsed_at":"2022-07-12T16:33:53.334Z","dependency_job_id":"a8737506-8661-42ec-9d35-09e12df708d9","html_url":"https://github.com/AdoptOpenJDK/homebrew-openjdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdoptOpenJDK%2Fhomebrew-openjdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdoptOpenJDK%2Fhomebrew-openjdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdoptOpenJDK%2Fhomebrew-openjdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdoptOpenJDK%2Fhomebrew-openjdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdoptOpenJDK","download_url":"https://codeload.github.com/AdoptOpenJDK/homebrew-openjdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390880,"owners_count":20769475,"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":["hacktoberfest","homebrew","homebrew-tap"],"created_at":"2024-08-01T03:01:43.797Z","updated_at":"2025-03-30T22:32:27.167Z","avatar_url":"https://github.com/AdoptOpenJDK.png","language":"Ruby","funding_links":[],"categories":["Ruby","HarmonyOS","hacktoberfest"],"sub_categories":["Windows Manager"],"readme":"# ⚠ DEPRECATION NOTICE ⚠\nThis homebrew tap is officially deprecated in favor of the [temurin](https://formulae.brew.sh/cask/temurin) casks provided directly from the Homebrew project, and will receive no further updates after 2021-08-01 (Aug 01, 2021). Please adjust your usage accordingly:\n\nUntap this brew tap:\n\n```bash\n$ brew untap AdoptOpenJDK/openjdk\n```\n\nTo download the latest version (16):\n\n```bash\n$ brew install --cask temurin\n```\n\nTo install other versions:\n\n```bash\n$ brew tap homebrew/cask-versions\n$ brew install --cask temurin8\n```\n\n## AdoptOpenJDK - HomeBrew TAP\n\n## Usage \n\nTo always get the latest and greatest AdoptOpenJDK, run:\n\n```bash\n$ brew install --cask adoptopenjdk\n```\n\nThe `adoptopenjdk` cask will automatically upgrade to the newest patch or major release as soon as it comes out.\n\nTo stay with a specific major release, activate the AdoptOpenJDK tap with `brew tap` and then install the desired version with `brew install --cask \u003cversion\u003e`:\n\n```bash\n$ brew tap AdoptOpenJDK/openjdk\n$ brew install --cask \u003cversion\u003e\n```\n\nTo install AdoptOpenJDK 14 with HotSpot, run:\n\n```bash\n$ brew tap AdoptOpenJDK/openjdk\n$ brew install --cask adoptopenjdk14\n```\n\nMultiple major releases can be installed side-by-side. To get a list of available versions, run `brew search adoptopenjdk` or see the [list here in the README](#available-versions).\n\n### Available Versions\n| Java Version | JDK | JRE\n|--|--|--|\n| Latest OpenJDK with Hotspot JVM | `adoptopenjdk` | `adoptopenjdk-jre` | \n| Latest OpenJDK with OpenJ9 JVM | `adoptopenjdk-openj9` | `adoptopenjdk-openj9-jre` | \n| OpenJDK8 with Hotspot JVM | `adoptopenjdk8` | `adoptopenjdk8-jre` |\n| OpenJDK8 with OpenJ9 JVM | `adoptopenjdk8-openj9` | `adoptopenjdk8-openj9-jre` |\n| OpenJDK9 with Hotspot JVM | `adoptopenjdk9` | n/a |\n| OpenJDK10 with Hotspot JVM | `adoptopenjdk10` | n/a |\n| OpenJDK11 with Hotspot JVM | `adoptopenjdk11` | `adoptopenjdk11-jre` |\n| OpenJDK11 with OpenJ9 JVM | `adoptopenjdk11-openj9` | `adoptopenjdk11-openj9-jre` |\n| OpenJDK12 with Hotspot JVM | `adoptopenjdk12` | `adoptopenjdk12-jre` |\n| OpenJDK12 with OpenJ9 JVM | `adoptopenjdk12-openj9` | `adoptopenjdk12-openj9-jre` |\n| OpenJDK13 with Hotspot JVM | `adoptopenjdk13` | `adoptopenjdk13-jre` |\n| OpenJDK13 with OpenJ9 JVM | `adoptopenjdk13-openj9` | `adoptopenjdk13-openj9-jre` |\n| OpenJDK14 with Hotspot JVM | `adoptopenjdk14` | `adoptopenjdk14-jre` |\n| OpenJDK14 with OpenJ9 JVM | `adoptopenjdk14-openj9` | `adoptopenjdk14-openj9-jre` |\n| OpenJDK15 with Hotspot JVM | `adoptopenjdk15` | `adoptopenjdk15-jre` |\n| OpenJDK15 with OpenJ9 JVM | `adoptopenjdk15-openj9` | `adoptopenjdk15-openj9-jre` |\n| OpenJDK16 with Hotspot JVM | `adoptopenjdk16` | `adoptopenjdk16-jre` |\n| OpenJDK16 with OpenJ9 JVM | `adoptopenjdk16-openj9` | `adoptopenjdk16-openj9-jre` |\n\n[docnocref]: https://www.eclipse.org/openj9/docs/xcompressedrefs/\n[docmx]: https://www.eclipse.org/openj9/docs/xms/\n\n### Switch between different JDK versions\n1. Add the below function in your `~/.bashrc` or `~/.zshrc` \n```bash\njdk() {\n        version=$1\n        export JAVA_HOME=$(/usr/libexec/java_home -v\"$version\");\n        java -version\n }\n```\n\nFor Fish shell user, add the below function in your `~/.config/fish/functions`\n\n```fish\nfunction jdk\n\tset java_version $argv\n\tset -Ux JAVA_HOME (/usr/libexec/java_home -v $java_version)\n\tjava -version\nend\n```\n\n 2. Source the profile and you can change the version like below:\n ```bash\n  jdk 1.8\n  jdk 9\n  jdk 11\n  jdk 13\n  ```\n\n## Adding a new cask\nIf a new major version has been released (e.g 14) add it to [casks.txt](casks.txt). Normally you just need to copy the list of casks from the previous major version. e.g\n\n```bash\n# OpenJDK14\nadoptopenjdk14\nadoptopenjdk14-jre\nadoptopenjdk14-openj9\nadoptopenjdk14-openj9-jre\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdoptOpenJDK%2Fhomebrew-openjdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAdoptOpenJDK%2Fhomebrew-openjdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdoptOpenJDK%2Fhomebrew-openjdk/lists"}