question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`gradle build` task doesn't add content of `/src/main/webapp` folder

See original GitHub issue

Hi. 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:closed
  • Created 10 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found