GradleWebAppSample | Sample Web Application to demonstrate Gradle usage | Plugin library
kandi X-RAY | GradleWebAppSample Summary
kandi X-RAY | GradleWebAppSample Summary
Sample Web Application to demonstrate Gradle usage for WAR + Jetty Plugin.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Display days
- Returns the number of days between two years
GradleWebAppSample Key Features
GradleWebAppSample Examples and Code Snippets
Community Discussions
Trending Discussions on GradleWebAppSample
QUESTION
I checked out this sample Jetty-gradle bases server app, https://github.com/rominirani/GradleWebAppSample on my raspberry pi, in hope to get a java server running. However the build fails with below error:
pi@raspberrypi:~/projects/ixrobotserver2.0 $ gradle build :utils:compileJava UP-TO-DATE :utils:processResources UP-TO-DATE :utils:classes UP-TO-DATE :utils:jar FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':utils:jar'.
Could not add file '/home/pi/projects/ixrobotserver2.0/utils/build/classes/main/com' to ZIP '/home/pi/projects/ixrobotserver2.0/utils/build/libs/utils.jar'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 59.558 secs
I have confirmed that it's not a permission issue. chmod-ed 777 to entire workspace and it still doesn't work.
I have confirmed that the directory (/home/pi/projects/ixrobotserver2.0/utils/build/classes/main/com) and file (/home/pi/projects/ixrobotserver2.0/utils/build/libs/utils.jar) both exist.
I have confirmed that the build succeeds on my mac.
Complete Stack trace (in debug mode): Available at http://www.heypasteit.com/clip/0IIKXC
Truncated stack trace:
...ANSWER
Answered 2017-May-21 at 15:49I upgraded my gradle to 3.5 (from 1.5) and the error is gone. The problem happened because Raspbian's apt-get installs the gradle 1.5 version by default.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GradleWebAppSample
You can use GradleWebAppSample like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the GradleWebAppSample component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page