Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building Java using Gradle on Jenkins
Rating: 3.9 out of 5(6 ratings)
73 students

Building Java using Gradle on Jenkins

A hands-on guide with step-by-step examples for Git, Docker, Jenkins, Gradle, Java, and bringing them all together
Created byJohn Valentino
Last updated 12/2022
English

What you'll learn

  • The basics of Test Automation, CI, CD, and DevOps
  • The fundamentals of Source Control (Git), Docker, and Jenkins
  • How to install and setup Git, Docker, Docker Compose, and Jenkins
  • An Introduction to Java Build Concepts and Gradle
  • How to use Gradle to check, test, and publish Java libraries
  • How to use Jenkins to automate CI/CD based on Gradle using freestyle jobs, scripted pipelines, and declarative pipelines

Course content

4 sections20 lectures2h 2m total length
  • Introduction6:02

    With so many terms, techniques, and tools available, navigating how about building and delivering software can be overwhelming. This course picks a path through that maze, specifically focused on Java, and walks through a set of those options for delivery. Specifically using a combination of Docker, Jenkins, Git, and Gradle. Every aspect of this course also comes with a Git repository that contains both details and the examples being discussed.


    Learners can follow along by running their own development environments for executing the examples, or just use this as a deep-dive explanation into the inner workings of Java-Jenkins-Gradle delivery. Either way, let working code be your guide. The course structure starts with setting up a basic development environment, and ends with using a Jenkins declarative pipeline to   execute a Gradle build using the Java, Maven, Jacoco, and PMD plugins, that on the pass of all the quality gates publishes the resulting Java Library to a Maven Repository.

  • About Me2:06

    A little about me and my background.

  • The Path to DevOps11:28

    This course is a means to end, but what is that end and what is the path?

Requirements

  • An understanding of the Windows/Linux/Mac command-line
  • A very basic understanding of Java coding
  • Knowledge of how to install third-party applications and tools, and making them available via the command-line

Description

With so many terms, techniques, and tools available, navigating how about building and delivering software can be overwhelming. This course picks a path through that maze, specifically focused on Java, and walks through a set of those options for delivery. Specifically using a combination of Docker, Jenkins, Git, and Gradle. Every aspect of this course also comes with a Git repository that contains both details and the examples being discussed.


Learners can follow along by running their own development environments for executing the examples, or just use this as a deep-dive explanation into the inner workings of Java-Jenkins-Gradle delivery. Either way, let working code be your guide. The course structure starts with setting up a basic development environment, and ends with using a Jenkins declarative pipeline to   execute a Gradle build using the Java, Maven, Jacoco, and PMD plugins, that on the pass of all the quality gates publishes the resulting Java Library to a Maven Repository.


It additionally covers the concepts of containerization, configuration as code, static code analysis, unit testing, code coverage, and pipelines as code. The course is otherwise divided into three sections:


(1) Infrastructure

  • Git via Github - Setting up Git so that you can use SSH to get the examples.

  • Docker and Docker Compose - Installing Docker and Docker Compose to be able to run containers locally.

  • Jenkins via Docker Compose - Running Jenkins locally in a container.

(2) Building Java

  • Building Java 101 - The basics of how Java code is turned into a Jar.

  • Gradle and the Java Plugin - Using the Java Plugin to test and build a Jar.

  • Gradle and Java Code Coverage - How to generate code coverage for unit testing, and set a quality gate.

  • Gradle and Java Static Code Analysis - How to run PMD, and set a quality gate.

  • Gradle and Java Library Publishing - How to publish a Jar to a Maven Repository.

(3) Jenkins Automation

  • Freestyle Job - Building, Testing, and Delivering the Jar using a Freestyle Job.

  • Scripted Pipeline - Building, Testing, and Delivering the Jar using a Scripted Pipeline.

  • Declarative Pipeline - Building, Testing, and Delivering the Jar using a Declarative Pipeline.

Who this course is for:

  • DevOps Engineers and Developers interested on how Gradle can be used to build and publish Java-based projects via the available techniques on Jenkins
  • Developers looking for a deeper understanding on how Git, Docker, Java, Jenkins, and Gradle can all come together to build and deliver