
Building and Testing with Gradle
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Dedication
- Table of Contents
- Foreword
- Preface
- Introduction
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments from Tim Berglund
- Acknowledgments from Matthew McCullough
- Chapter 1. Hello, Gradle!
- Build Files in Groovy
- Domain-Specific Build Languages
- Getting Started
- MacOS Installation with Brew
- Linux and MacOS Installation
- Windows Installation
- The Hello World Build File
- Building a Java Program
- The Gradle Command Line
- Chapter 2. Gradle Tasks
- Declaring a Task
- Task Action
- Task Configuration
- Tasks Are Objects
- Methods of DefaultTask
- dependsOn(task)
- doFirst(closure)
- doLast(closure)
- onlyIf(closure)
- Properties of DefaultTask
- didWork
- enabled
- path
- logger
- logging
- description
- temporaryDir
- Dynamic Properties
- Task Types
- Copy
- Jar
- JavaExec
- Custom Task Types
- Custom Tasks Types in the Build File
- Custom Tasks in the Source Tree
- Where Do Tasks Come From?
- Conclusion
- Chapter 3. Ant and Gradle
- The Vocabulary
- Hello Ant
- Importing Custom Ant Tasks
- Complex Ant Configuration
- Importing an Entire Ant Build File
- Ant Target and Gradle Task Codependence
- Using AntBuilder
- A Harmonic Duo
- Chapter 4. Maven and Gradle
- Cue Graven?
- The Maven POM and Gradle Build
- Maven Goals, Gradle Tasks
- The Standard Maven Coordinates, Gradle Properties
- More Gradle Properties
- Dependencies
- Repositories
- Unit Testing
- Multiple Source Directories
- Default Tasks
- The Maven Plug-in
- Installing to the Local Maven Repository (Cache)
- Publishing to a Maven Repository
- Maven2Gradle Build Script Converter
- Maven POM Import
- Conclusion
- Chapter 5. Testing with Gradle
- JUnit
- TestNG
- Spock
- Geb and EasyB
- Gradle's Testing Focus
- Chapter 6. Multiproject Builds
- Multiproject Build Structure
- Project-Specific Build Files
- One Master Build File
- A Hybrid Multiproject Build
- Individual, Unified, or Hybrid?
- Multiproject Task Structure
- Multiple Projects Your Way
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.