Building and Testing with Gradle. Understanding Next-Generation Builds - Helion
ISBN: 978-14-493-1309-8
stron: 116, Format: ebook
Data wydania: 2011-07-06
Księgarnia: Helion
Cena książki: 63,74 zł (poprzednio: 74,99 zł)
Oszczędzasz: 15% (-11,25 zł)
Build and test software written in Java and many other languages with Gradle, the open source project automation tool that’s getting a lot of attention. This concise introduction provides numerous code examples to help you explore Gradle, both as a build tool and as a complete solution for automating the compilation, test, and release process of simple and enterprise-level applications.
Discover how Gradle improves on the best ideas of Ant, Maven, and other build tools, with standards for developers who want them and lots of flexibility for those who prefer less structure.
- Use Gradle with Groovy, Clojure, Scala, and languages beyond the JVM, such as Flex and C
- Get started building a simple Java program using Gradle's command line tooling and a small build script
- Learn how to configure and construct tasks, Gradle's fundamental unit of build activity
- Take advantage of Gradle's integration with Ant
- Use Gradle to integrate with or transition from Maven, and to build software more cleanly
- Perform application unit and integration tests using JUnit, TestNG, Spock, and Geb
Osoby które kupowały "Building and Testing with Gradle. Understanding Next-Generation Builds", wybierały także:
- Wprowadzenie do Javy. Programowanie i struktury danych. Wydanie XII 193,23 zł, (59,90 zł -69%)
- Spring i Spring Boot. Kurs video. Testowanie aplikacji i bezpiecze 129,00 zł, (51,60 zł -60%)
- Metoda dziel i zwyci 89,00 zł, (35,60 zł -60%)
- JavaFX. Kurs video. Wzorce oraz typy generyczne 79,00 zł, (31,60 zł -60%)
- Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform 99,00 zł, (39,60 zł -60%)
Spis treści
Building and Testing with Gradle. Understanding Next-Generation Builds eBook -- spis treści
- Building and Testing with Gradle
- Dedication
- SPECIAL OFFER: Upgrade this ebook with OReilly
- 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
- 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
- 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
- Methods of DefaultTask
- 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
- 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
- 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
- 5. Testing with Gradle
- JUnit
- TestNG
- Spock
- Geb and EasyB
- Gradles Testing Focus
- 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
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright