`gradle build` task doesn't add content of `/src/main/webapp` folder
See original GitHub issueHi.
I’m using spring-boot plugin 0.5.0.M6.
I’ve added static files to /src/main/webapp
and configured run
task similar to https://github.com/jaylindquist/spring-boot-service-and-static/blob/master/build.gradle
gradle run
works as expected. gradle build
builds flat jar file but it doesn’t add content of /src/main/webapp
folder. So java -jar xxx.jar
will behave incorrectly
Issue Analytics
- State:
- Created 10 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to include external webapp files during gradle build
When I run gradle clean build I get the following error. I seems that there is no build location for webapp, so can't...
Read more >WAR plugin doesn't include src/main/webapp in classpath
Hi, I have a very simple webapp. I'm using gradle war plugin. It doesn't see src/main/webapp in the classpath when running tests, but...
Read more >Chapter 26. The War Plugin
The default behavior of the War task is to copy the content of src/main/webapp to the root of the archive. Your webapp directory...
Read more >Working with Gradle | Packt Hub
The SimpleWebApp/build.gradle file has the following content: ... folder could be under the root project folder, not in the src folder.
Read more >Getting Started | Building Java Projects with Gradle - Spring
Within the src/main/java/hello directory, you can create any Java classes you ... tasks are available, they don't offer much value without a project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hm… Check this - https://github.com/jaylindquist/spring-boot-service-and-static/tree/master/src/main or https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-web-static/src/main
I’ve created question about this - http://stackoverflow.com/questions/20757393/where-should-i-store-static-resources-when-i-build-spring-boot-app-by-gradle
@JavierOrtuno this issue is closed and questions are to be raised on StackOverflow. Thanks