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
Cannot run after using Gradle to build jar file. #66
Comments
Can you please provide more context/information? |
@nmihajlovski |
@doggie1989 are you using gradle's shadow plugin to build a uberjar? because I just tried it and it's working for me |
@wmacgyver |
@doggie1989 ah yea, that won't work. because rapidoid comes with embedded server, so you have to run it as a uber jar. here is my build.gradle
you build the uber jar by doing gradle shadow, it will produce a uber jar in build/libs. when you do jar -jar foo.jar. it will run the class my.app.main as I defined here. |
Thanks brother. I am migrating my app from spring boot... |
@doggie1989 yea, you didn't have to do this with spring boot for gradle because the spring boot plugin extends application. so it's silently doing it in the background as magic if you will. we too have moved from spring boot. |
@wmacgyver hi mate, now I have some static files in static folder, when I start Rapidoid in eclipse,it works,but it does not work after packing it and run via java -jar...it looks that the static files have not ben packed into jar...do you know how to solve it? |
No description provided.
The text was updated successfully, but these errors were encountered: