Alan-Gomes / mcspring-boot

A Spring boot starter for Bukkit/Spigot/PaperSpigot plugins
MIT License
78 stars 25 forks source link

Is it possible to use mcspring-boot with gradle? #36

Open Jpac14 opened 3 years ago

Jpac14 commented 3 years ago

Hi,

I am trying to use mcspring-boot with gradle. Since all the other project in my ecosystem use gradle. I also need to use I preferably would like to keep with the gradle 4.6, but if I can't use an older version of gradle it's okay for me to upgrade. Here is my code: https://gitlab.com/openstreetcraft/minecraft/-/tree/41-world-manipulation-repository/bukkit-server/plugin/space-saver. The problem I am have is when I do ./gradlew runServer, I get this error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bukkit-space-saver-plugin:bootJar'.
> Main class name has not been configured and it could not be resolved

* 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
12 actionable tasks: 3 executed, 9 up-to-date

For reference, I am trying to use Spring JPA.

Thanks, Jpac14