MinecraftDev
MinecraftDev copied to clipboard
Issues with Gradle plugin (Paper)
Minecraft Development for IntelliJ plugin version
2024.3-1.8.2
IntelliJ version
IntelliJ IDEA 2024.3.1.1
Operating System
Windows 11 Home 24H2
Target platform
Paper
Description of the bug
Everything seemed to work well until I tried Gradle. Specifically, two issues are keeping me from making the plugin work.
- This may be IntelliJ related and not the plugin itself, but artifacts don't work when I build the project, even though the artifact is set to be included in the project build. No error messages, just the output is not being created and I have to select the artifact manually and build it through the Build Artifacts.
- After building through the Build Artifacts menu, the plugin won't load, and throws the following exception in the server log:
[22:19:12 INFO]: [ReobfServer] Remapping server...
[22:19:15 INFO]: [ReobfServer] Done remapping server in 3696ms.
[22:19:15 INFO]: [PluginRemapper] Remapping plugin 'plugins\Untitled.jar'...
[22:19:16 INFO]: [PluginRemapper] Done remapping plugin 'plugins\Untitled.jar' in 419ms.
[22:19:16 ERROR]: [DirectoryProviderSource] Error loading plugin: java.lang.IllegalArgumentException: Directory 'plugins\.paper-remapped\Untitled.jar' does not contain a paper-plugin.yml or plugin.yml! Could not determine plugin type, cannot load a plugin from it!
No modifications were made to the project except for a simple Hello, World! log, so the issue probably lies in the plugin and how it initializes the project - or I'm doing something wrong. The project configuration is following: