Gradle build tools

Post on 16-Apr-2017

84 views 6 download

Transcript of Gradle build tools

Gradle Build Tools

Gradle Build Tool

● Fast Build Speeds− DSL versus XML− Can ran as a Daemon

Gradle Tasks

● List all available tasks− gradle tasks− Gradle --help

● Commands− -d

● Debugging option, displays stacktrace− --daemon

● Run as a daemon−

Graphical User Interface

Gradle Test Execution

● To execute tests in gradle build, simple execute:− gradle test− From Eclipse: Run As...Gradle Test

Gradle Build File

Building a project with Eclipse:gradle eclipse

The BuildShip Eclipse plugin from the Eclipse Marketplace allows for integration for Gradle from the Eclipse IDE

Eclipse IDE Integration

Easily Create, Manage,Build, and ExecuteGradle projectswith the BuildShipplugin for the Eclipse IDE

Build and Execute Tests from Eclipse Console

BuildShip integrates Gradle Tasks and Gradle Executions into the console

Gradle Test Execution From Eclipse

To execute tests with Gradle with Eclipse, simply run as Gradle Test as would be executed with JUnit Test.

Gradle Build Components

build.gradlegradle.propertiesgradlewsettings.gradle

configurationproperties filegradle wrapperproject settings

Eclipse Gradle Plugin Console

Provides the time of execution for the build and for the tests. Errors are displayed in the Console.

Python Integration

Install or update the latest selenium with PIP:

pip install -U selenium

Settings allows adding additional projects