Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Gradle (at JUG Bonn)

Introduction to Gradle (at JUG Bonn)

An introduction to Gradle that has just a few slides and a long demo afterwards. The presentation starts with a short introduction and overview over Gradle Inc., the Gradle Build Tool and some build tool history. What follows is a demo that covers the following topics:

- Creating a gradle build with gradle init
- Writing custom tasks
- Discovering the build using build scans
- Defining custom source sets
- Extracting build logic into separate build scripts
- Extracting build logic into pre-compiled script plugins
- Extracting build logic into build plugins

The demo code can be found at https://github.com/britter/introduction-to-gradle

Benedikt Ritter

July 02, 2019
Tweet

More Decks by Benedikt Ritter

Other Decks in Programming

Transcript

  1. Today’s Speaker: Benedikt Ritter • Senior Software Engineer at Gradle

    Inc. • Apache Commons PMC Member • Guilty Pleasure: I love Scala! • Podcaster autoweird.fm @BenediktRitter
  2. Table of Contents Gradle Inc. Overview Gradle Build Tool Overview

    Demo Code: https://github.com/britter/introduction-to-gradle Q & A
  3. What software do we create at Gradle Inc? Open Source

    Build Automation Commercial SaaS Product (on-premises) Development Productivity For Gradle and Maven
  4. Gradle builds are observable A build scan is a shareable

    record of a build that provides insights into what happened and why. You can create a build scan at scans.gradle.com for the Gradle and Maven build tools for free.
  5. Demo Agenda • Build Init • Simple Task - Zip

    all Sources • Custom Source Set and Task - IntegTest • Extract Source Set and Task to separate script • Make script a Pre-compiled script plugin • Create a Test configurations plugin to easily add more test configurations • Build Scans (always publish, tags, links, values)
  6. More cool Gradle Features... • Composite builds • Dependency Meta

    Data Format • Dependency Version Alignment • Variant aware dependency resolution
  7. Can’t switch to Gradle? • Build scans are also available

    for Apache Maven: https://scans.gradle.com • Gradle Enterprise provides Build Acceleration for Maven Builds • Make your build more reliable with Gradle Enterprise • Debug your builds with Gradle Enterprise
  8. Want to learn more? • Try out build scans for

    free at scans.gradle.com • Checkout the Dependency Management Webinar: https://gradle.com/blog/dependency-management-fundamentals/ • Read our latest blog post on build caching for Maven: https://gradle.com/blog/build-scans-and-build-caching-for-maven -with-gradle-enterprise/ • Request a personal demo of Gradle Enterprise: https://gradle.com/enterprise/contact/