What is Gradle

Gradle is an open source build automation system that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven for declaring the project configuration.

Gradle build consists of one or more projects. Projects can be something which should be built or something that should be done. Each project consists of tasks. A task represents a piece of work which a build performs, e.g., compile the source code or generate the Javadoc.

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

Build Anything

Write in Java, C++, Python or your language of choice. Package for deployment on any platform. Go monorepo or multi-repo. And rely on Gradle's unparalleled versatility to build it all.

Scale out development with elegant, blazing-fast builds. From compile avoidance to advanced caching and beyond, we pursue performance relentlessly so your team can deliver continuously.

Tags: Gradle, Built Automation

HTML inside xml tag

You can include HTML inside XML tag using CDATA container. Aand strip that HTML using javascript to show up in html page dynamically.

<?xml version="1.0" encoding="utf-8"?>
  <TextElement>This is text</TextElement>
  <HTMLElement><![CDATA[<div>your html here</div>]]></HTMLElement>

Strip it using Javascript Jquery.

$xml = $($.parseXML(myxml));
$htmlTag = $xml.find("HTMLElement").text();
$PuerHtml = $htmlTag.replace("<![CDATA[", "").replace("]]>", "");

Tags: Xml, Javascript, Html

HTML input allow only numeric values

HTML 5 can use. '<input type="number"/>
Non HTML 5 below code:

<input id="numbersOnly" onkeypress='validate()' />
function validate(){
  var returnString;
  var text = document.getElementByID('numbersOnly').value;
  var regex = /[0-9]|\./;
  var anArray = text.split('');
  for(var i=0; i<anArray.length; i++){
     anArray[i] = '';
  for(var i=0; i<anArray.length; i++) {
    returnString += anArray[i];
  document.getElementByID('numbersOnly').value = returnString;

Tags: Numeric-input