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

Gradle Dependency Management

This ebook is included in a Mapt subscription
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
$0.00
$23.99
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

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