Skip to content

FelipeRos19/Updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updater

Is a library that monitors whether there is an update for the project using the modrinth API.

Requirements

  • Java 17 or higher

Installation

  1. Add the repository to your project.

Maven:

<repository>
  <id>felipe-releases</id>
  <name>Felipe Ros</name>
  <url>https://repo.felipe.fun/releases</url>
</repository>

Gradle (Groovy):

maven {
    url "https://repo.felipe.fun/releases"
}

Gradle (Kotlin):

maven {
    url = uri("https://repo.felipe.fun/releases")
}
  1. Add the dependency.

Maven:

<dependency>
  <groupId>fun.felipe</groupId>
  <artifactId>Updater</artifactId>
  <version>1.0.1-RELEASE</version>
</dependency>

Gradle (Groovy):

implementation "fun.felipe:Updater:1.0.1-RELEASE"

Gradle (Kotlin):

implementation("fun.felipe:Updater:1.0.1-RELEASE")

Usage/Example

//In your Main class.
@Override
public void onEnable() {
    if (!Updater.verification("project modrinth slug", this.plgetPluginMeta().getVersion()) {
      this.getLogger().warning("There is a new version available!");
    }
}

About

Simple library for update checking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages