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
gradle build
task doesn't add content of /src/main/webapp
folder
#180
Comments
I'm not a gradler so I don't really understand the question, but I do know that the "build" task is not provided by Spring Boot, so you might be asking in the wrong place. If you have |
No, I'm building jar that contains embed tomcat and application (if I understand it correctly) |
Then why would you have |
If your resources are in src/main/webapp that suggests you are building a WAR archive. And for a JAR src/main/resources is more appropriate (eg in /static). It's up to you though if you want to put stuff in non standard places - you just have to configure the build system to understand what you mean. |
How can I configure |
@JavierOrtuno this issue is closed and questions are to be raised on StackOverflow. Thanks |
Hi.
I'm using spring-boot plugin 0.5.0.M6.
I've added static files to
/src/main/webapp
and configuredrun
task similar to https://github.com/jaylindquist/spring-boot-service-and-static/blob/master/build.gradlegradle run
works as expected.gradle build
builds flat jar file but it doesn't add content of/src/main/webapp
folder. Sojava -jar xxx.jar
will behave incorrectlyThe text was updated successfully, but these errors were encountered: