3 options
Gradle essentials : master the fundamentals of Gradle with this quick and easy-to-read guide / Kunal Dabir, Abhinandan.
- Format:
- Book
- Author/Creator:
- Dabir, Kunal, author.
- Abhinandan, author.
- Series:
- Community experience distilled.
- Community Experience Distilled
- Language:
- English
- Subjects (All):
- Gradle (Computer file).
- Domain-specific programming languages.
- Physical Description:
- 1 online resource (176 p.)
- Edition:
- 1st edition
- Place of Publication:
- Birmingham, England ; Mumbai, [India] : Packt Publishing, 2015.
- System Details:
- text file
- Biography/History:
- Dabir Kunal: Kunal Dabir has over 10 years of experience working with clients ranging from Fortune 500 companies to startups. Currently, he works as a Lead Consultant at ThoughtWorks. He is a Java user group's co-organizer and speaks at various meet-ups and conferences. While he is always eager to learn a new language, he usually codes in languages such as Groovy, Scala, JavaScript, CoffeeScript, Ruby, and Java. He frequently contributes to open source projects and also hosts his own projects on GitHub. He has always been passionate about automating and scripting. From there, he got a knack for build tools. Apart from Gradle, he has spent a fair amount of time writing build scripts with tools such as Ant, Maven, Grunt, and Gulp. He was introduced to Gradle in 2011 while using Gaelyk. Since then, Gradle has become his tool of choice for build automation. He can be found on Twitter and GitHub as @kdabir. Maheshwari Abhinandan: Abhinandan is a Java guy with extensive experience in software design, architecture, and deployment and automation framework. He is passionate about providing solutions for different business needs. His other passions include hiking, reading and travelling. You can contact him at designationtraveller@yahoo. com Like a film cannot be made with just actors and directors, it requires lots of different team member's help, who supports at different stages till the movie get published, in the similar way book is not just effort of one person or the author. It requires lots of support from different people at different stages without which it would not be possible to put the thoughts on the paper and made it available to audience First and foremost, I would like to thank my family for all the support they gave me throughout this book. They never complained about the weekends, vacations which I compromised while working on the book. I would like to express my gratitude towards the PactPub publisher team (Parita, Purav, Rashmi), who provided support, from the initiation of the idea till the publication of the book. I appreciate that they believed in me and provided me the opportunity to become to become the coauthor of this book. I would like to thank the reviewers who helped me to improve the quality of the book. Thanks to Mainak, for the quality inputs and comment, which helped to make this book complete. I could not have done it without you.
- Summary:
- Master the fundamentals of Gradle using real-world projects with this quick and easy-to-read guide About This Book Write beautiful build scripts for various types of projects effortlessly Become more productive by harnessing the power and elegance of the Gradle DSL Learn how to use Gradle quickly and effectively with this step-by-step guide Who This Book Is For This book is for Java and other JVM-based language developers who want to use Gradle or are already using Gradle on their projects. No prior knowledge of Gradle is required, but some familiarity with build-related terminologies and an understanding of the Java language would help. What You Will Learn Master the Gradle DSL by identifying the building blocks Learn just enough Groovy for Gradle Set up tests and reports for your projects to make them CI ready Create library, stand-alone, and web projects Craft multi-module projects quickly and efficiently Migrate existing projects to a modern Gradle build Extract common build logic into plugins Write builds for languages like Java, Groovy, and Scala In Detail Gradle is an advanced and modern build automation tool. It inherits the best elements of the past generation of build tools, but it also differs and innovates to bring terseness, elegance, simplicity, and the flexibility to build. Right from installing Gradle and writing your first build file to creating a fully-fledged multi-module project build, this book will guide you through its topics in a step-by-step fashion. You will get your hands dirty with a simple Java project built with Gradle and go on to build web applications that are run with Jetty or Tomcat. We take a unique approach towards explaining the DSL using the Gradle API, which makes the DSL more accessible and intuitive. All in all, this book is a concise guide to help you decipher the Gradle build files, covering the essential topics that are most useful in real-world projects. With every chapter, you will learn a new topic and be able to readily implement your build files. Style and approach This step-by-step guide focuses on being productive with every chapter. When required, topics are explained in-depth to give you a good foundation of the Gradle fundamentals. The book covers most aspects of builds required for conventional JVM-based projects, and when necessary, points you towards the right resources.
- Contents:
- Cover ; Copyright; Credits; About the Authors; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Running Your First Gradle Task ; Installing Gradle; Installing manually; Installing on Mac OS X and Linux; Installing on Windows; Alternate methods of installing Gradle; Installing via OS-specific package managers; Installing via SDKMAN; Verifying the installation; Setting JVM options; The Gradle command-line interface; The first Gradle build script; Task name abbreviation; Gradle Daemon; Gradle Wrapper; Generating wrapper files
- Running a build via wrapperSummary; Chapter 2: Building Java Projects ; Building a simple Java project; Creating a build file; Adding source files; Building the project; A brief introduction to plugins; Unit testing; Adding a unit test source; Adding the JUnit to the classpath; Running the test; Viewing test reports; Fitting tests in the workflow; Bundling an application distributable; Running the application with Gradle; Building the distribution archive; Generating IDE project files; Summary; Chapter 3: Building a Web Application ; Building a simple Java web project; Creating source files
- Creating a build fileBuilding the artifact; Running the web application; Plugins to the rescue; References; Project dependencies; External libraries; The dynamic version; Transitive dependencies; Dependency configurations; Repositories; Summary; Chapter 4: Demystifying Build Scripts ; Groovy for Gradle build scripts; Why Groovy?; Groovy primer; Running Groovy code; Variables; Data structures; Methods; Classes; Another look at applying plugins; Gradle - an object-oriented build tool; Build phases; Initialization; Configuration; Execution; Life cycle callbacks; Gradle project API
- Project methodsProject properties; Extra properties on a project; Tasks; Attaching actions to a task; Task flow control; dependsOn; finalizedBy; onlyIf; mustRunAfter and shouldRunAfter; Creating tasks dynamically; Setting default tasks; Task types; Using task types; Creating task types; References; Groovy; Gradle API and DSL used in this chapter; Summary; Chapter 5: Multiprojects Build ; The multiproject directory layout; The settings.gradle file; Organizing build logic in multiproject builds; Applying a build logic to all projects; Applying build logic to subprojects
- Dependency on subprojectsSummary; Chapter 6: The Real-world Project with Gradle ; Migrating from an Ant-based project; Importing an Ant file; Using AntBuilder API; Rewriting Ant tasks to Gradle tasks; Migrating from a Maven project; Publishing artifacts; Continuous Integration; Generating documentation; Summary; Chapter 7: Testing and Reporting with Gradle ; Testing with TestNG; Integration testing; Code coverage; Code analysis reports; Summary; Chapter 8: Organizing Build Logic and Plugins ; Extracting build logic to buildSrc; The first plugin; Configuring plugins; Summary
- Chapter 9 : Polyglot Projects
- Notes:
- Description based upon print version of record.
- Includes bibliographical references at the end of each chapters and index.
- Description based on online resource; title from PDF title page (ebrary, viewed May 31, 2017).
- ISBN:
- 9781783982370
- 1783982373
- OCLC:
- 935744731
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.