更新时间:2021-07-16 10:43:44
coverpage
Gradle Effective Implementations Guide - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Starting with Gradle
Declarative builds and convention over configuration
Getting started
Writing our first build script
Default Gradle tasks
Task name abbreviation
Executing multiple tasks
Command-line options
Understanding the Gradle graphical user interface
Summary
Chapter 2. Creating Gradle Build Scripts
Writing a build script
Defining tasks
Build scripts are Groovy code
Defining dependencies between tasks
Setting default tasks
Organizing tasks
Adding tasks in other ways
Accessing tasks as project properties
Adding additional properties to tasks
Avoiding common pitfalls
Skipping tasks
Chapter 3. Working with Gradle Build Scripts
Working with files
Project properties
Using logging
Using the Gradle Wrapper
Chapter 4. Using Gradle for Java Projects
Why plugins?
Getting started with the Java plugin
Working with source sets
Working with properties
Creating Javadoc documentation
Chapter 5. Dependency Management
Dependency configuration
Repositories
Defining dependencies
Chapter 6. Testing Building and Publishing Artifacts
Testing our projects
Running Java applications
Publishing artifacts
Packaging Java Enterprise Edition applications
Chapter 7. Multi-project Builds
Working with multi-project builds
Working with Java multi-project builds
Using the Jetty plugin
Chapter 8. Mixed Languages
Using the Groovy plugin
Using the Scala plugin
Chapter 9. Maintaining Code Quality
Using the Checkstyle plugin
Using the PMD plugin
Using the FindBugs plugin
Using the JDepend plugin
Using the CodeNarc plugin
Chapter 10. Writing Custom Tasks and Plugins
Creating a custom task
Creating a task in a standalone project
Creating a custom plugin
Creating a plugin in the project source directory
Creating a plugin in a standalone project
Chapter 11. Gradle in the Enterprise
Creating a sample project
Using Jenkins
Using JetBrains TeamCity
Using Atlassian Bamboo
Chapter 12. IDE Support
Using the Eclipse plugin
Using the IntelliJ IDEA plugin
Running Gradle in Eclipse
Running Gradle in IntelliJ IDEA