Book description
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
Publisher resources
Table of contents
- Dedication
- Foreword
- Preface
- 1. Hello, Gradle!
- 2. Gradle Tasks
- 3. Ant and Gradle
-
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
- 6. Multiproject Builds
- About the Authors
- Colophon
- Copyright
Product information
- Title: Building and Testing with Gradle
- Author(s):
- Release date: July 2011
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449304638
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …
book
Generative Deep Learning, 2nd Edition
Generative AI is the hottest topic in tech. This practical book teaches machine learning engineers and …
book
The Complete Coding Interview Guide in Java
Explore a wide variety of popular interview questions and learn various techniques for breaking down tricky …