Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant changes to the
groovier
project, focusing on updating dependencies, enhancing the build process, and improving the script loading mechanism. The most important changes include adding a new build workflow, updating project versions, and refining the script loader's functionality.Major Updates:
Build and Version Updates:
.github/workflows/1.21.yml
)pom.xml
files to0.0.51-SNAPSHOT
and adjusted the plugin version to${project.parent.version}-1.21
. (groovier-engine/pom.xml
,groovier-plugin/pom.xml
) [1] [2]Script Loader Enhancements:
GroovierScriptLoader
class to include a newaddClassPath
method and improved the script loading and unloading process to handle exceptions and ensure proper reloading. (groovier-plugin/src/main/groovy/com/ericlam/mc/groovier/GroovierScriptLoader.groovy
) [1] [2]GroovierCacheManager
class to bypass caching and let the Groovy class loader handle script loading directly. (groovier-plugin/src/main/groovy/com/ericlam/mc/groovier/GroovierCacheManager.groovy
) [1] [2] [3]Dependency and Configuration Adjustments:
GroovierAddon
to support the installation of Guice modules. (groovier-engine/src/main/java/com/ericlam/mc/groovier/GroovierAddon.java
)GroovierCore
class to implement theGroovierAddon
interface and handle module installation. (groovier-plugin/src/main/groovy/com/ericlam/mc/groovier/GroovierCore.java
) [1] [2] [3] [4]Miscellaneous Improvements:
mathService.groovy
toMathService.groovy
for consistency. (groovier-plugin/src/main/resources_common/services/MathService.groovy
)grapesConfig.groovy
files for both Spigot and BungeeCord to use the latest API versions. (groovier-plugin/src/main/resources_bungee/grapesConfig.groovy
,groovier-plugin/src/main/resources_spigot/grapesConfig.groovy
) [1] [2]