modrinth / minotaur

Gradle plugin for deploying build artifacts to Modrinth.
GNU Lesser General Public License v2.1
83 stars 15 forks source link

Minotaur does not work with velocity api's annotations #68

Open SageSphinx63920 opened 2 months ago

SageSphinx63920 commented 2 months ago

Describe the bug

The plugin does not work when using the velocity api annotations and fails with this error. The plugin itself does work on velocity.

> Task :modrinth
Minotaur: 2.8.7

> Task :modrinth FAILED

Execution failed for task ':modrinth'.
> Failed to upload file to Modrinth! EndpointException(error=invalid_input, description=Error with multipart data: No velocity-plugin.json present for plugin file.)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 10s
11 actionable tasks: 8 executed, 3 up-to-date

Steps to reproduce

  1. Setup minotaur
  2. Create a velocity plugin with the annotations and without the old json file
  3. Run the Modrinth task

Expected behavior

The plugin should be uploaded without issues

Additional context

My plugin can be found here: Keklist and the velocity main file is here

SageSphinx63920 commented 2 months ago

This could also be an issue with the rest api itself not particular the gradle plugin

SageSphinx63920 commented 2 months ago

This was some issue on my end, regarding the velocity annotation processor. This was never an issue during my tests as the debug mode does not fail for this! I do not know if this issue should still be open regarding the debug mode not failing.