https://github.com/lclpyt/plugins4j
Lightweight plugin loading and unloading at runtime.
https://github.com/lclpyt/plugins4j
classloader java plugins
Last synced: 11 months ago
JSON representation
Lightweight plugin loading and unloading at runtime.
- Host: GitHub
- URL: https://github.com/lclpyt/plugins4j
- Owner: LCLPYT
- License: mit
- Created: 2023-02-06T18:41:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-16T20:27:06.000Z (over 2 years ago)
- Last Synced: 2025-01-27T14:46:44.725Z (about 1 year ago)
- Topics: classloader, java, plugins
- Language: Java
- Homepage:
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```groovy
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](https://repo.lclpnet.work/#artifact/work.lclpnet/plugins4j).
## Example application
An example CLI program using `plugins4j` can be found [here](https://github.com/LCLPYT/plugins4j/blob/main/src/example/java/work/lclpnet/example/Main.java).
### Run the example app yourself
First, clone the repository.
Then, make sure you have Java 17 installed.
If not, [install it](https://adoptium.net/temurin/releases/).
Build and run the application:
```bash
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.