Could not find GradleWrapperMain

| Reading Time : 1 minute | #backenddevelopment #Jenkins


Jenkins console output, the build is failed with error - “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 result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Finished: FAILURE


  1. The class GradleWrapperMain is inside the gradle-wrapper.jaris not available for build. Most common scenario is that file gradle-wrapper.jar missed from check-in.(due to .jar in .gitignore ?)
  2. To fix it, create a Gradle wrapper again, and make sure the following files and folders are added to your version control system like GitHub.


Articles from blogs I follow around the net

powerctl: A small case study in Hare for systems programming

powerctl is a little weekend project I put together to provide a simple tool for managing power states on Linux. I had previously put my laptop into suspend with a basic “echo mem | doas tee /sys/power/state”, but this leaves a lot to be desired. I have to u…

via Drew DeVault's blog August 28, 2022

United States v. Microsoft Corp exhibits

Links to exhibits from the Microsoft anti-trust case, with a bit of info on each link. Projection of PC marketshare Share of new browser users Share of the browser market, grouped by major ISP, 3 month moving average Share of the browser market, grouped by ma…

via August 24, 2022

Status update, August 2022

Hi all! This month I’ve been pondering offline-first apps. The online aspect of modern apps is an important feature for many use-cases: it enables collaboration between multiple people and seamless transition between devices (e.g. I often switch between my pe…

via emersion August 14, 2022

Generated by openring

© Copyright 2021-2022. Rakesh Mothukuri