Posts

Gradle Fundamentals

Image
Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. This post teach you the fundamentals of Gradle. So let's get started to know it's definition first and go through different concepts of Gradle. What is Gradle?  Build by convention Gradle is often called build by convention. Like Maven, gradle has a bunch of building conventions that we can follow when we do the build . However these conventions are easily overridable. We will talk more about it later. Groovy DSL Gradle is written in java but the build language DSL (domain specific language) is written in Groovy. This language makes it very easy to configure our builds. So we are not writing an XML, we write in a language specific to our build. Supports dependencies Just like Maven support dependencies, Gradle also supports dependencies. Supports ...

What's new in Java 8 (Aggregation of all the features in a single Post)

Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. In this course we will learn the features of Java8. As you all know Java8 got major changes like Lambda expressions, Streams and also changes in Date API. So let's get started with Lambda expressions. Introduction to Lambda expressions Lets start with FileFilter example. public interface Filefilter{     boolean  accept(File file); } public class JavaFileFilter implements FileFilter{     boolean accept(File file){          return file.getName().endsWith(".java")    } } JavaFileFilter fileFilter = new JavaFileFilter(); File dir = new File("d:/tmp"); File[] files = dir.listFiles(fileFilter); 2) FileFilter fileFilter = new FileFilter(){       boolean accept(File file){  ...