Posts

Showing posts with the label build tools

Sample gradle file

Following details are part of previous blog http://www.scmtechblog.net/2015/12/how-to-migrate-parent-pom-from-maven-to.html Here is the sample of base gradle file which can be acted as super pom for your project. There are 2 profiles we have enabled whitebox-analysis and Coverage-analysis which does complete checks and only jacoco respectively.

How to migrate Parent pom from maven to gradle

Convert Maven parent/super pom to Gradle init file When you think of moving to gradle for some reason from maven, You need to take care of lot of stuff around it, You can find lot of tools and help to convert maven pom.xml to gradle build.gradle But one of the most important task as an engineer or architect would be to convert your super pom (or parent pom) in to gradle init scripts. Gradle init script provides same functionality as Maven super/parent pom. The basic difference is that you can call init script Run time As many as of them This gives us flexibility to change the init script on run time but doubt of not tracking the changes.

Maven Errors - Few common Maven error and troubleshooting part 1

In this post i am going to talk about maven build troubleshooting, Here is the list few maven error and its troubleshooting. Tag Already exist If you see following type of error in your release build after the perform step [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project : Unable to tag SCM [ERROR] Provider message: [ERROR] The git-tag command failed. [ERROR] Command output: [ERROR] fatal: tag '<some tag>' already exists

Maven to gradle Migration

I am not a big fan of gradle but still this time i am taking this topic. Maven pom file is xml based build file and Gradle is groovy based system. There are many logic involve to make one to one comparison of generic features. I would like take some generic logic and try to detail out on converting those from maven pom file to gradle build file. Setup Modules define repositories upload of artifacts to maven repository Profiling jacoco test report use of release plugin

Setup Build - SCM System from beginning

This topic is specially for users who are new to the Build, SCM and Release Management and need to understand how can they setup the infrastructure and what are their options. To Build the system to automate the build and deployment process there are few main areas which needs to be covered. Following are our prerequisite. - Source code   - Builds System -  Deployments - QA Automation To describe above here are main ingredients

Maven Tips to optimize build timings

Few Maven Tips and tricks to make Maven builds fast and faster and efficiently. This can help to reduce the build timings drastically and optimize your build timings Run compilation parallel mvn -T 2 clean compile #Above will trigger 2 threads mvn -T 1C clean install #Above will trigger 1 thread per CPU, if you have 2 CPU core then 2 threads will be spawned. #You can even give number in fraction (1.5, 2.5 etc).

Gradle or Maven - A Dilemma

Gradle and Maven (or Both) The world of build tools evolve from simple compilation (gcc) to make files, then evolution of ant(+ivy) and Maven, now the latest build tool is Gradle. Its always a puzzle which build tool to choose  maven, gradle or both (maven and gradle) . Sometime its first time project setup or could be migration from existing tool but it always a debate to choose one of the existing one. There have been lot of talks and discussion on Gradle, maven (and/or Gradle vs maven). There are Buzz around that Android/google adopted Gradle as its standard build tools.