Book description
Automate the build process for your Android projects with Gradle
In Detail
Gradle is an open source build automation system that introduces a Groovy-based domain-specific language (DSL) to configure projects. Using Gradle makes it easy for Android developers to manage dependencies and set up the entire build process.
This book begins by taking you through the basics of Gradle and how it works with Android Studio. Furthermore, you will learn how to add local and remote dependencies to your project. You will work with build variants, such as debug and release, paid and free, and even combinations of these things. The book will also help you set up unit and integration testing with different libraries and will show how Gradle and Android Studio can make running tests easier. Finally, you will be shown a number of tips and tricks on the advanced customization of your application's build process. By the end of this book, you will be able to customize the entire build process, and create your own tasks and plugins for your Gradle builds.
What You Will Learn
- Build new Android apps and libraries using Android Studio and Gradle
- Migrate projects from Eclipse to Android Studio and Gradle
- Manage the local and remote dependencies of your projects
- Create multiple build variants
- Include multiple modules in a single project
- Integrate tests into the build process
- Create custom tasks and plugins for Android projects
Table of contents
-
Gradle for Android
- Table of Contents
- Gradle for Android
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Started with Gradle and Android Studio
- 2. Basic Build Customization
- 3. Managing Dependencies
- 4. Creating Build Variants
- 5. Managing Multimodule Builds
- 6. Running Tests
- 7. Creating Tasks and Plugins
- 8. Setting Up Continuous Integration
- 9. Advanced Build Customization
- Index
Product information
- Title: Gradle for Android
- Author(s):
- Release date: July 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783986828
You might also like
video
Gradle for Android
Whether you’re new to Gradle or an experienced Android developer, Java consultant Ken Kousen will help …
book
Gradle Recipes for Android
Android adopted Gradle as the preferred build automation system a few years ago, but many Android …
book
Gradle Essentials
Master the fundamentals of Gradle using real-world projects with this quick and easy-to-read guide About This …
book
Gradle Beyond the Basics
If you’re familiar with Gradle’s basics elements—possibly through the author’s previous O’Reilly book, Building and Testing …