Gradle Dependency Management
eBook - ePub

Gradle Dependency Management

  1. 188 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Gradle Dependency Management

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Gradle Dependency Management by Hubert Klein Ikkink in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Java. We have over one million books available in our catalogue for you to explore.

Information

Gradle Dependency Management


Table of Contents

Gradle Dependency Management
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Defining Dependencies
Declaring dependency configurations
Declaring dependencies
External module dependencies
Defining client module dependencies
Using project dependencies
Defining file dependencies
Using internal Gradle and Groovy dependencies
Using dynamic versions
Getting information about dependencies
Accessing dependencies
Buildscript dependencies
Optional Ant task dependencies
Managing dependencies
Summary
2. Working with Repositories
Declaring repositories
Using the Maven JCenter repository
Using the Maven Central repository
Using the Maven local repository
Using Maven repositories
Using the flat directory repository
Using Ivy repositories
Using different protocols
Summary
3. Resolving Dependencies
Understanding dependency resolution
Configuring transitive dependencies
Disabling transitive dependencies
Excluding transitive dependencies
Using artifact-only dependencies
Resolving version conflicts
Using the newest version
Failing on version conflict
Forcing a version
Customizing dependency resolution rules
Using client modules
Using dynamic versions and changing modules
Understanding the dependency cache
Command-line options for caching
Changing cache expiration
Summary
4. Publishing Artifacts
Defining artifact configurations
Defining artifacts
Using the archive task
Using artifact files
Creating artifacts
Publishing artifacts to the local directory
Excluding the descriptor file
Signing artifacts
Using configurations to sign
Using archive tasks to sign
Summary
5. Publishing to a Maven Repository
Defining publication
Defining publication artifacts
Using archive task artifacts
Using file artifacts
Using software components
Generating POM files
Customizing the POM file
Defining repositories
Publishing to the local Maven repository
Publishing to the Maven repository
Publishing to Artifactory
Publishing to Nexus
Summary
6. Publishing to Bintray
What is Bintray?
Defining a new repository
Defining the Bintray plugin
Deploying publications to Bintray
Configuring the Bintray plugin
Summary
7. Publishing to an Ivy Repository
Defining publications
Defining publication artifacts
Using archive task artifacts
Using file artifacts
Using software components
Generating Ivy descriptor files
Customizing the descriptor file
Defining repositories
Publishing to a local directory
Publishing to Artifactory
Publishing to Nexus
Summary
Index

Gradle Dependency Management

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2015
Production reference: 1120615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-278-9
www.packtpub.com

Credits

Author
Hubert Klein Ikkink
Reviewers
Tony Dieppa
Izzet Mustafaiev
Konstantin Zgirovskiy
Commissioning Editor
Pramila Balan
Acquisition Editor
Sonali Vernekar
Content Development Editor
Athira Laji
Technical Editor
Siddhesh Ghadi
Copy Editor
Sarang Chari
Project Coordinator
Harshal Ved
Proofreader
Safis Editing
Indexer
Monica Mehta
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta

About the Author

Hubert Klein Ikkink, born in 1973, lives in Tilburg, the Netherlands, with his beautiful wife and three gorgeous children. He is also known as mrhaki, which is simply the initials of his name prepended by "mr". He studied information systems and management at Tilburg University. After finishing his studies in 1996, he started to develop Java software. Over the years, his focus switched from applets to servlets, and from Java Enterprise Edition applications to Spring-based software and Groovy-related technologies. He likes the expressiveness of the Groovy language and how it is used in other tools, such as Gradle. He also wrote Gradle Effective Implementation Guide, Packt Publishing.
In the Netherlands, Hubert works for a company called JDriven. JDriven focuses on technologies that simplify and improve the development of enterprise applications. Employees of JDriven have years of experience with Java and related technologies and are all eager to learn about new technologies. Hubert works on projects using Grails and Java combined with Groovy and Gradle.

About the Reviewers

Izzet Mustafaiev is a family guy who likes to throw BBQ parties and travel.
Professionally, he is a software engineer working at EPAM Systems with primary skills in Java and hands-on experience in Groovy/Ruby, and is exploring FP with Erlang/Elixir. Izzet has participated in different projects as a developer and as an architect. He advocates XP, clean code, and DevOps practices when he speaks at engineering conferences.
Konstantin Zgirovskiy grew up alongside Android, in a manner of speaking. In 2008, he started programming web services and Chrome extensions for an online browser game, which was later made official. In 2011, Konstantin continued to explore Android through writing a game, which brought him victory in a local programming contest. Nowadays, he works at Looksery, Inc., where he is involved in developing an app with face-tracking and transformation technology for video chats, video selfies, and images on mobile devices.

Table of contents

  1. Gradle Dependency Management