Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.1 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.1 KB

plugins4j

Lightweight plugin loading and unloading at runtime.

Installation

You can install plugins4j via Gradle.

To use plugins4j in your project, modify your project.gradle:

repositories {
    mavenCentral()
    
    maven {
        url "https://repo.lclpnet.work/repository/internal"
    }
}

dependencies {
    implementation 'work.lclpnet:plugins4j:0.5.0'  // replace with your version
}

All available versions can be found here.

Example application

An example CLI program using plugins4j can be found here.

Run the example app yourself

First, clone the repository. Then, make sure you have Java 17 installed. If not, install it.

Build and run the application:

cd plugins4j/           # project directory
./gradlew deploy        # make sure gradle uses java 17

cd run/
java -jar example.jar   # make sure to use java 17

Type help to display all available commands.