Lightweight plugin loading and unloading at runtime.
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.
An example CLI program using plugins4j
can be found here.
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.