Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neziw/releasechecker
Easy and lightweight GitHub release parser written in Java using Gson and HTTP Requests.
https://github.com/neziw/releasechecker
api api-wrapper apis github-api github-api-client github-api-wrapper github-client gradle gson http https java java-api java-app java-application java-github-api maven
Last synced: 30 days ago
JSON representation
Easy and lightweight GitHub release parser written in Java using Gson and HTTP Requests.
- Host: GitHub
- URL: https://github.com/neziw/releasechecker
- Owner: neziw
- License: mit
- Created: 2024-06-28T14:41:51.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-11T18:06:01.000Z (about 2 months ago)
- Last Synced: 2024-11-11T19:19:46.137Z (about 2 months ago)
- Topics: api, api-wrapper, apis, github-api, github-api-client, github-api-wrapper, github-client, gradle, gson, http, https, java, java-api, java-app, java-application, java-github-api, maven
- Language: Java
- Homepage:
- Size: 145 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# ReleaseChecker
Easy and lightweight GitHub release parser written in Java using Gson and HTTPS Requests.
### Example Usage:
```java
// https://github.com/nats-io/nats.java
final ReleaseCheck releaseCheck = ReleaseCheckBuilder.builder()
.setRepositoryOwner("nats-io")
.setRepositoryName("nats.java")
.build();System.out.println("Latest version: " + releaseCheck.getLatestRelease().tagName());
System.out.println("Is a newer version available: " + releaseCheck.isNewerVersionAvailable("2.20.1"));//You can also get all available releases using 'ReleaseCheck#getReleaseDataList()'
final int behindCount = releaseCheck.getBehindCount("2.20.1");
if (behindCount == -1) {
System.out.println("There is no such tag.");
} else if (behindCount == 0) {
System.out.println("You are using the latest version.");
} else {
System.out.println("Your version is " + behindCount + " versions behind the latest.");
}
```**Output** (since 19/10/2024):
```
Latest version: 2.20.2
Is a newer version available: true
Your version is 1 versions behind the latest.
```### Adding dependency
**Maven:**
```xml
neziw-repo
https://repo.neziw.ovh/releases
ovh.neziw
ReleaseChecker
1.0.2
```
**Gradle:**
```groovy
repositories {
maven {
name "neziw-repo"
url "https://repo.neziw.ovh/releases"
}
}implementation "ovh.neziw:ReleaseChecker:1.0.2"
```---
Special thanks to [JetBrains](https://www.jetbrains.com/products/) company for providing development tools used to develop this project.[](https://www.jetbrains.com)