{"id":16167507,"url":"https://github.com/samcarlberg/update-checker","last_synced_at":"2025-04-07T05:51:39.651Z","repository":{"id":82586656,"uuid":"116741037","full_name":"SamCarlberg/update-checker","owner":"SamCarlberg","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-16T04:14:50.000Z","size":116,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T10:18:22.166Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamCarlberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-08T23:38:23.000Z","updated_at":"2018-01-08T23:38:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bd3dee8-a99d-4b83-82f9-b7d35314708b","html_url":"https://github.com/SamCarlberg/update-checker","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"21c0ff8e9187e00dbf6caf663ce579d6654ef602"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamCarlberg%2Fupdate-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamCarlberg%2Fupdate-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamCarlberg%2Fupdate-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamCarlberg%2Fupdate-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamCarlberg","download_url":"https://codeload.github.com/SamCarlberg/update-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601486,"owners_count":20964864,"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":"2024-10-10T03:08:21.663Z","updated_at":"2025-04-07T05:51:39.631Z","avatar_url":"https://github.com/SamCarlberg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# update-checker\n\n[ ![Download](https://api.bintray.com/packages/samcarlberg/maven-artifacts/update-checker/images/download.svg) ](https://bintray.com/samcarlberg/maven-artifacts/update-checker/_latestVersion)\n\nA simple Java library that checks for updates to software in Maven repositories.\nIt provides means for getting the most recent versions of a software package from arbitrary\nMaven repositories.\n\n## Basic use\n\n```java\nString group = \"...\";\nString artifactName = \"...\";\nString currentVersion = \"...\";\n\nUpdateChecker updateChecker = new UpdateChecker(group, artifactName, currentVersion);\nupdateChecker.useMavenRepos(repo1, repo2, ...);\n\nif (updateChecker.getStatus() == UpdateStatus.OUTDATED) {\n  updateChecker.getMostRecentArtifact().ifPresent(artifact -\u003e {\n    System.out.println(\"The most recent artifact is version \" + artifact.getVersion() \n        + \" on Maven repo \" + artifact.getMavenRepo());\n  });\n  updateChecker.getMostRecentArtifactLocation().ifPresent(url -\u003e {\n    System.out.println(\"The most recent artifact can be downloaded at \" + url);\n  });\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamcarlberg%2Fupdate-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamcarlberg%2Fupdate-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamcarlberg%2Fupdate-checker/lists"}