{"id":26988872,"url":"https://github.com/jbangdev/jbang-devkitman","last_synced_at":"2025-06-17T04:07:36.717Z","repository":{"id":276784362,"uuid":"930288570","full_name":"jbangdev/jbang-devkitman","owner":"jbangdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-07T08:29:43.000Z","size":255,"stargazers_count":3,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T03:10:03.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/jbangdev.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,"zenodo":null}},"created_at":"2025-02-10T11:48:16.000Z","updated_at":"2025-06-02T13:15:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1842aa1-808b-4fc1-a875-076e61abebc6","html_url":"https://github.com/jbangdev/jbang-devkitman","commit_stats":null,"previous_names":["jbangdev/jbang-devkitman"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jbangdev/jbang-devkitman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-devkitman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-devkitman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-devkitman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-devkitman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbangdev","download_url":"https://codeload.github.com/jbangdev/jbang-devkitman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-devkitman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260183381,"owners_count":22971208,"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":[],"created_at":"2025-04-03T20:28:59.308Z","updated_at":"2025-06-17T04:07:36.682Z","avatar_url":"https://github.com/jbangdev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JBang Dev Kit Manager\n\nThis is a library that manages Java JDK versions on the local machine.\nIt can detect Java versions that are already available on the system\nthat have been installed by a variety of methods, this being default\nsystem installers or 3rd party tools like SDKMan, Brew, Scoop, etc.\nIt can also download, install and manage JDKs itself.\n\n## Usage\n\nFirst include the library in your project:\n\n### JBang\n\n```\n//DEPS dev.jbang:jdkmanager:0.1.4\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n\t\u003cartifactId\u003ejdkmanager\u003c/artifactId\u003e\n\t\u003cversion\u003e0.1.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```groovy\nimplementation 'dev.jbang:devkitman:0.1.4'\n```\n\nThen the simplest way to get started is:\n\n```java\n//DEPS dev.jbang:devkitman:0.1.4\nimport dev.jbang.devkitman.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tvar jdkManager = JdkManager.create();\n\t\tvar jdk = jdkManager.getOrInstall(\"11+\");\n\t\tSystem.out.println(\"JDK \" + jdk.majorVersion() + \" home folder \" + jdk.getHome());\n\t}\n}\n```\n\nThis will either find a Java JDK on the system that is at least version 11,\nor it will download and install a JDK that is at least version 11\n(the actual version that gets installed depends on the \"default version\"\nthat is configured).\n\nSee [samples/](samples/) folder for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-devkitman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbangdev%2Fjbang-devkitman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-devkitman/lists"}