Gradle Dependency Management

Learn how to use Gradle's powerful dependency management through extensive code samples, and discover how to define, customize, and deploy dependencies
Preview in Mapt

Gradle Dependency Management

Hubert Klein Ikkink

Learn how to use Gradle's powerful dependency management through extensive code samples, and discover how to define, customize, and deploy dependencies
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Gradle Dependency Management Book Cover
Gradle Dependency Management
$ 23.99
$ 16.80
Practical Build Management with Gradle [Video] Book Cover
Practical Build Management with Gradle [Video]
$ 124.99
$ 106.25
Buy 2 for $34.30
Save $114.68
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781784392789
Paperback188 pages

Book Description

Gradle is the next generation in build automation. It allows you to define dependencies for your project in a clear way and also customize how they are resolved to suit your needs. It offers fine-grained control over how to publish your artifacts to Maven and Ivy repositories.

Gradle Dependency Management defines dependencies for your Java-based project and customizes how they are resolved. You will learn how to configure the publication of artifacts to different repositories. Packed with plenty of code samples, you will understand how to define the repositories that contain dependencies. Following this, you will learn how to customize the dependency resolution process in Gradle.

Table of Contents

Chapter 1: Defining Dependencies
Declaring dependency configurations
Declaring dependencies
Using dynamic versions
Getting information about dependencies
Optional Ant task dependencies
Managing dependencies
Summary
Chapter 2: Working with Repositories
Declaring repositories
Using different protocols
Summary
Chapter 3: Resolving Dependencies
Understanding dependency resolution
Resolving version conflicts
Customizing dependency resolution rules
Using dynamic versions and changing modules
Understanding the dependency cache
Summary
Chapter 4: Publishing Artifacts
Defining artifact configurations
Defining artifacts
Creating artifacts
Publishing artifacts to the local directory
Signing artifacts
Summary
Chapter 5: Publishing to a Maven Repository
Defining publication
Defining publication artifacts
Using archive task artifacts
Using file artifacts
Using software components
Generating POM files
Defining repositories
Summary
Chapter 6: Publishing to Bintray
What is Bintray?
Defining the Bintray plugin
Deploying publications to Bintray
Configuring the Bintray plugin
Summary
Chapter 7: Publishing to an Ivy Repository
Defining publications
Defining publication artifacts
Using archive task artifacts
Generating Ivy descriptor files
Defining repositories
Summary

What You Will Learn

  • Define dependencies in your Java projects
  • Publish your artifacts to Maven and Ivy repositories
  • Configure transitive dependencies
  • Install your artifacts in Bintray
  • Customize the resolution of dependency rules
  • Use your own code as dependencies in a multimodule project
  • Configure repositories to resolve dependencies

Authors

Table of Contents

Chapter 1: Defining Dependencies
Declaring dependency configurations
Declaring dependencies
Using dynamic versions
Getting information about dependencies
Optional Ant task dependencies
Managing dependencies
Summary
Chapter 2: Working with Repositories
Declaring repositories
Using different protocols
Summary
Chapter 3: Resolving Dependencies
Understanding dependency resolution
Resolving version conflicts
Customizing dependency resolution rules
Using dynamic versions and changing modules
Understanding the dependency cache
Summary
Chapter 4: Publishing Artifacts
Defining artifact configurations
Defining artifacts
Creating artifacts
Publishing artifacts to the local directory
Signing artifacts
Summary
Chapter 5: Publishing to a Maven Repository
Defining publication
Defining publication artifacts
Using archive task artifacts
Using file artifacts
Using software components
Generating POM files
Defining repositories
Summary
Chapter 6: Publishing to Bintray
What is Bintray?
Defining the Bintray plugin
Deploying publications to Bintray
Configuring the Bintray plugin
Summary
Chapter 7: Publishing to an Ivy Repository
Defining publications
Defining publication artifacts
Using archive task artifacts
Generating Ivy descriptor files
Defining repositories
Summary

Book Details

ISBN 139781784392789
Paperback188 pages
Read More

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Git Version Control Cookbook Book Cover
Git Version Control Cookbook
$ 26.99
$ 18.90
Apache Maven 3 Cookbook Book Cover
Apache Maven 3 Cookbook
$ 23.99
$ 16.80
RESTful Java Patterns and Best Practices Book Cover
RESTful Java Patterns and Best Practices
$ 16.99
$ 11.90
Gradle Effective Implementation Guide Book Cover
Gradle Effective Implementation Guide
$ 26.99
$ 18.90
Maven Build Customization Book Cover
Maven Build Customization
$ 26.99
$ 18.90