Gradle Build Automation Handbook

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

In this ebook, we provide a compilation of Gradle examples that will help you kick-start your own projects. We cover a wide range of topics, from installation and configuration, to how to use various plugins and how to integrate Gradle with 3rd party tools. With our straightforward tutorials, you will be able to get your own projects up and running in minimum time.

Author(s): Andres Cespedes
Publisher: Exelixis Media P.C.
Year: 2016

Language: English
Commentary: www.javacodegeeks.com
Pages: 77

Gradle “Hello World” Tutorial
What is Gradle ?
Why Gradle ? I really need a build tool?
Downloading Gradle
Setting environment variables
Hello World! Gradle
Gradle JVM Options
Gradle Basic Concepts
Working with Gradle Tasks
Default Tasks
Task Dependency
Abbreviated Task Execution
Conclusions
Download the Gradle Scripts
Gradle Properties: Build and Configuration Example
Why should we use Gradle Properties?
What do we need?
Types of Gradle's Properties
System Properties
Project Properties
Gradle's Properties, hello!
Custom Project Properties in Script
Setting Properties in Command Line
Setting Properties using an external file
Key Points
Download the Gradle Scripts
Gradle GWT Integration Example
Introduction to Gradle GWT Integration
Gradle Plugins
Dependency Management
Source Sets (Java Plugin)
What do we need?
Environment Configuration
Gradle's Installation
Eclipse Gradle & GWT Plugins
Install and Configure GWT SDK
Creating GWT Project
Setting Gradle in GWT Project
GWT Gradle Build Script (Step by step)
Plugins and Dependencies
Gradle GWT Integration (Building and assembling)
Running the Example
Key Points
Download the Eclipse Project
Gradle SourceSets Example
Introduction to Gradle SourceSets
What is a Gradle SourceSet ?
What do We Need?
Environment Configuration
Creating a Gradle Project
Generated Build.Gradle (New SourceSet Definition)
SourceSet's Properties
Assembling SourceSets in JAR Files
Creating SourceSet Documentation
Testing
Final Build.Gradle SourceSet Script
Key Points
Download the Eclipse Project
Gradle OSGi Plugin Example: BNDTools Bundle Integration
Introduction to Gradle and OSGi Integration
Basic Concepts
What do We Need?
Environment Configuration
Creating OSGi Project
Deploying OSGi Project
Gradle Integration
Running Gradle OSGi Integration
Testing Gradle OSGi
Key Points
Download the Eclipse Project
Gradle Wrapper Example
What's Gradle Wrapper?
What we need to start?
Environment Configuration
Creating Wrapper Script
Using Gradle Wrapper
Key Points
Download the Eclipse Project
Gradle NetBeans Example
Why use Gradle in NetBeans IDE?
Requirements
Installing the Gradle Plugin in NetBeans IDE
How to Start using Gradle in NetBeans?
Create your first Gradle Project
Testing Gradle Project
Key Points
Download the NetBeans Project
Gradle War Plugin (& Tomcat) Example
Introduction to Gradle War Plugin
What we need to start?
Environment Configuration
Create Java Web Application
Using Gradle WAR Plugin
Running Example
Deploying WAR File
Key Points
Download the Eclipse Project