
Explore a well-organized, hands-on Gradle for Java developers course with sections, quizzes, and assignments, plus Q&A support to help you install Gradle and the Spring Tool Suite and practice concepts.
Install gradle on your machine by following platform-specific steps, using brew for macOS or SDKMAN on unix-based systems, then set the path so gradle commands run anywhere.
Learn to use the Gradle wrapper on Windows by running GradleW.bat for your first project and applying the correct command or task to execute.
Create your first Gradle project, add a custom task, and run it with the Gradle wrapper; learn project setup, settings, and how wrappers enable project-specific Gradle versions.
Explore dependencies and repositories in a Java Gradle project, detailing how to declare group, artifact, and version, and explain scopes such as implementation and testImplementation with Maven Central and JUnit.
Explore Gradle configurations and how dependencies flow through source sets, tests, and war packaging. Compare api and implementation, compile only, and legacy maven scopes.
Explore Groovy data types and type inference, compare with Java types, and use def, wrappers, and primitives; learn strings, multiline strings, and regex patterns.
Learn how to work with the Gradle task object by accessing its properties and methods, defining variables, and establishing task relationships using depends on and finalized by, including default tasks.
Create index.html with a coupon form linking to /coupon, implement a servlet that handles doGet and doPost to process the coupon, set a discount attribute, and forward to response.jsp.
Launch and test a java web app using the gritty gradle plugin, running on jetty by default or tomcat, with configurable port and access on localhost:8080.
Create a multi-module Gradle project by renaming the app to services and duplicating it to create web layer, data layer, and integration layer, configure settings.gradle, and run Gradle build.
Learn to create and apply Gradle tasks across a multi-module project, including printing the project name and using all projects, subprojects, or specific projects to control execution.
Discover how to show dependencies for a subproject in Gradle with a simple command, revealing the full dependency tree including transitive dependencies.
Configure test support by adding JUnit and Mockito dependencies to Gradle and creating a coupon servlet test with mocked HTTP request, response, and request dispatcher.
Write and run a unit test for a servlet doPost method by mocking request parameter and request dispatcher, verifying setAttribute and forward calls, and validating with a Gradle build.
Update the Gradle workflow by migrating from sonar cube to sonar and passing a generated sonar token via build.gradle to run sonar tasks.
Run Gradle SonarQube to scan your project, identify vulnerabilities and code smells, then fix issues such as missing @Override annotations and re-run the scan.
Download the Jenkins war file, run it with java -jar jenkins.war, and unlock with the initial password on localhost:8080, then install plugins and set up the admin user.
Compare the Gradle build script with Maven pom.xml to see how a parent specifies the Spring Boot version, and how plugins and BOM manage dependencies for Spring Boot projects.
Migrate a spring boot maven project to a gradle project using the coupon and product services, and bring them up on ports 9091 and 9090.
Sample Reviews:
This was an exceptionally good course! I found what I needed in the first 45 minutes, and I watched the rest just to make sure I had full coverage. I feel like I am completely competent in Gradle, andI have already converted 3 of my projects to use Gradle, and it is all working surprisingly well. Good job! -- Keith Swenson
Course is certainly very informative and the fundamentals are well explained with real world examples. Especially multi module gradle concepts and custom plugins adds, because they are very much useful for a IT developer. Lecturer voice is clear and intense. Thank you very much -- Sunil Kumar
I was waiting for Bharath's course on Gradle and when it came out, I purchased it instantly. I did not even hesitate once before buying it since I already know that this course will be as good as his other courses. I recently joined a company and there we are working on a big project which has so many configurations and it was build using Gradle and I was having trouble understanding them. I googled and read some online blogs, watched some youtube videos but still many things were not clear to me so when his course came on Gradle I was overjoyed. His explanation is so simple, precise, short and to the point -- Saurav
Are you a Java or Spring Boot developer who wants to master Gradle then this course is for you.Are you a developer with Maven background who wants to quickly learn Gradle then this course is for you as well.
Gradle is one of the most popular build automation tools in the java world.In this course you will master all the core concepts of Gradle while working hands on to create a various java project.In this course you will
Understand what Gradle is and why it is so popular
You will create a Standalone Java Project using Gradle command line
Compare gradle settings.gradle with Maven pom.xml
Quickly learn groovy to understand the Gradle build scripts
Understand the anatomy of a Gradle build file
Create a Java Web Application
Use the War and Gretty plugins to build and run your web application
Create Custom Gradle tasks
Create Multi Module Projects
Learn how to add dependencies between modules
Learn how to manage common logic and dependencies for all the modules
Write and run unit tests using JUnit and Mockito
Generate Test Coverage reports configuring the JACOCO code coverage plugin
Configure SonarQube plugin to run static code analysis
Create a Spring Boot Project using Gradle
Migrate Spring Boot Maven projects to use Gradle
Understand the build.gradle file of the spring boot project, build and run it
Create Custom Gradle Plugins
What are the requirements?
Gradle, Spring Tool Suite (Installation is covered)
A basic understanding of Java and Java Web Development
What am I going to get from this course?
Apply your understanding of Gradle and your ability to build a project using Gradle
Create and build a java web application using Gradle
Master all the important concepts of Gradle while working hands on
Learn how to create and build Spring Boot Projects using Gradle