Skip to main content

What is Gradle ?

Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the more traditional XML form of declaring the project configuration.

Unlike Apache Maven, which defines lifecycles, and Apache Ant, where targets are invoked based upon a depends-on partial ordering, Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.

Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.

The initial plugins are primarily focused around JavaGroovy and Scala development and deployment, but more languages and project workflows are on the roadmap.


Popular posts from this blog

Android Basic Tutorial : Get the Current Date and Time

Here’s a code snipped to get the current date and/or time. This snipped uses the Calendar object (java.util.Calendar) which is a useful class when working with dates.

//Get a calendar object for the current date and time Calendar CurrentDateTime = Calendar.getInstance();
//Example: Get current day of the month

Sign In with Google in Your Android Apps Example with Code in Android Studio

1. Prerequisites

Before beginning, check that you have all the necessary pre-requisites. These include: Android StudioAn Android Device that runs Android 4.2.2 or later    -or-   A configured Android Emulator (this is available in Android Studio)The latest version of the Android SDK including the SDK tools component. You can get this from the Android SDK Manager in Android Studio.The Google Play Services SDK. You can get this from the Android SDK Manager in Android Studio.

2. Enabling Sign-In for your App
Before you start coding any of the Android functionality, you need to turn on the Sign-In APIs for your App in the Google Developer’s console. You’ll see how to do that in this section. Create a Project
To create a project, visit the developer’s console at:
Press the ‘Create Project’ button, and you’ll see a popup like this:

Enter a meaningful name for your project in the ‘Project name’ box. For the project ID, you’ll need to enter something tha…