Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Gradle plugin (Paper) #2427

Open
marss72 opened this issue Jan 12, 2025 · 1 comment
Open

Issues with Gradle plugin (Paper) #2427

marss72 opened this issue Jan 12, 2025 · 1 comment

Comments

@marss72
Copy link

marss72 commented Jan 12, 2025

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.

  1. 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.
  2. 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:

image

@marss72
Copy link
Author

marss72 commented Jan 13, 2025

Update

I didn't understand Gradle. I fixed some issues but still have others to address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant