WebJelly

WebJelly 2022-01-18

Native Minecraft Version:
1.17
Tested Minecraft Versions:
1.17
Source Code:
Contributors:
dolphin2410
Languages Supported:
Korean
Donation Link:
WebJelly
Load Maven Artifacts to Runtime

- 한국어

WebJelly is a plugin that supports a library-loading feature for artifacts in which are not in the `MavenCentral` repository.

The Problem
Let's say you have your own repository server named
Code (Text):
You want to use `myproject` artifact in there, but you can't go like
Code (YAML):
name: MyPlugin
main: io.github.xxx.plugin.MyPlugin
version: 1.0
libraries:
- com.example.myproject:myproject:1.0
because the `myproject` artifact is not in the `MavenCentral` repository.

The solution
As most of you are aware, you can't modify the spigot's library loading system to support not only `maven-central` but also one of yours. So I decided to make my own plugin-loading system that has the dependencies you want in your runtime.

webjelly.json
`webjelly.json` should be in the `resources` directory of your source-code. It should be placed in the root directory of your jar plugin. You can use it like the following
Code (Text):
{
"<repository>": [
"artifact1",
"artifact2"
],
"<another_repository>": [
"artifact3"
]
}
So in the case when you want to load `myproject` from `https://example.com/repo/`, you can use
Code (Text):
{
"https://example.com/repo/": [
"myproject"
]
}
Using Your Plugin
The tree should be like this
Code (Text):
├── plugins
│ ├── webjelly
│ │ └── myplugin.jar
│ └── webjelly.jar
├── ...
***Your plugin should be located in the webjelly directory inside the plugins folder, not directly in the plugins folder. You should create the webjelly directory if it doesn't exist***
Author
Mined
Downloads
4
Views
17
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Mined

Top