-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgraded for v1.21 spigot * added unit test for delegate * added api-version in plugin.yml * fixed naming problem * changed script loading mechanism for file * fixed services cannot depend other service classes * optimized reloading mechanism * added install module api
- Loading branch information
Showing
21 changed files
with
390 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: build artifacts for 1.21 | ||
on: | ||
push: | ||
branches: | ||
- feat/1.21 | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
id: checkout-source | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: 'adopt' | ||
- name: 'Package Jar' | ||
run: mvn -B package --file ./pom.xml | ||
- name: 'upload artifacts' | ||
id: upload-artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: groovier-plugin | ||
path: './groovier-plugin/target' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
groovier-engine/src/main/java/com/ericlam/mc/groovier/GroovierAddon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.ericlam.mc.groovier; | ||
|
||
import com.google.inject.Module; | ||
|
||
/** | ||
* groovier addon | ||
*/ | ||
public interface GroovierAddon { | ||
|
||
/** | ||
* install guice module | ||
* @param module module | ||
*/ | ||
void installModule(Module module); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.