Jenkins – Could not find GradleWrapperMain

Create a Gradle project in Jenkins CI, source management with Git, and build with Gradle Wrapper 1. Problem Jenkins console output, the build is failed – “Could not find org.gradle.wrapper.GradleWrapperMain” [Gradle] – Launching build. [workspace] $ /var/lib/jenkins/jobs/GradleTest/workspace/gradlew clean test Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Build step ‘Invoke Gradle script’ changed build …

Read more

How to use Gradle Wrapper

In this tutorial, we will show you how to create Gradle wrapper for your project and how to use it. What is Gradle wrapper? The Gradle wrapper allows you to run a Gradle task without requiring that Gradle is installed on your system. 1. Create a Gradle Wrapper 1.1 Declares a wrapper task. build.gradle task …

Read more