Introduction This tutorial will show you how to integrate in-memory H2 database with Spring Boot and build using Gradle/Maven tools. You will see here simple Spring Boot Data JPA example with Spring REST API to understand how it works. H2 is in-memory database, so it does not have persistence capability once your Spring Boot application…

Posted in Gradle Spring Boot Spring JPA

Integrate H2 In-memory Database with Spring Boot

Introduction The error, utility classes should not have a public or default constructor, you notice mainly in utility classes where you have declared your class method(s) as public static and your class does not have private constructor as well as your class cannot be made as final. This error occurs due to the checkstyle rules defined…

Posted in Gradle Spring Boot

Utility classes should not have a public or default constructor – Spring Boot

Introduction I will show here how to use checkstyle plugin in gradle based Java project. Checkstyle is a static code quality tool used to find Fan-out complexity of a class, complexity of method, utility class, bugs due to not following the coding standards. So you can remove the complexity from your Java source code and…

Posted in Code Quality Gradle

How to use checkstyle plugin in gradle based project

Building Mule Apps with Gradle in Eclipse, i.e., you are going to create Mule project outside Mule Studio. We will build the Mule project in Eclipse using Gradle script. Gradle is becoming more and more popularity as a build system. It combines the power of scripting with the simplicity of conventions, where customization does not…

Posted in Gradle Mule ESB

Building Mule Apps with Gradle in Eclipse

Integrate npm web app in spring boot with gradle is basically a multi-module project as we have seen in our earlier tutorials here with maven build in spring boot and here with maven in Eclipse. But the example on integrate npm web app in spring boot with gradle uses gradle to build the project. Here…

Posted in Gradle Spring Boot

Integrate npm web app in Spring Boot with Gradle

In this tutorial I will show you how to create Kotlin project in Eclipse. This example shows you how to create Kotlin gradle project or Kotlin maven project. Kotlin is statically typed programming language for modern multiplatform applications. Kotlin has 100% compatibility with Java or vice-versa. Salient Features of Kotlin Drastically reduces the amount of…

Posted in Gradle Kotlin Maven

Creating Kotlin Project in Eclipse

In this tutorial I will show you an example on evolving database using Spring Boot and Liquibase with YAML and SQL configuration. We had seen similar example using XML configuration. I will also show you how to build application using both maven and gradle build tools. I will not tell you much details on Liquibase…

Posted in Gradle Liquibase Spring Boot

Evolving Database using Spring Boot and Liquibase with YAML and SQL Configuration

We have seen in our previous tutorial Spring boot activiti example how Business Process Management works using Activiti framework. In my previous tutorial I have used the default behavior of the process engine. In this tutorial I will show you how you can bootstrap the process engine using Spring JavaConfig to create our own spring boot activity…

Posted in Activiti Gradle Spring Boot

Spring Boot Activiti – Process Engine Configuration

Introduction In this post we will see an example on generating stubs from multiple QSDL files using Maven or Gradle plugin. Let’s say, you are given a WSDL file and you want to generate Java class from it, then you need to do some configurations in your maven or gradle project to automate the activities….

Posted in Gradle Maven SOAP

Generating stubs from multiple WSDL files using Maven or Gradle

This tutorial will show you how to generate Java classes from XSD file using JAXB API and Gradle. Generating JAXB classes from xsd using Gradle is not an easy task because Gradle does not have yet any ready-made plugin like Maven. So to generate Java classes from XSD schema using Gradle you have to write an…

Posted in Gradle Java

Generating jaxb classes from xsd using Gradle

Introduction In this example I will show you how to use Liquibase to maintain your database changes history over the time. I will use here XML based configuration for Liquibase. It is often important to consider when developing web application, how to evolve the database schema of a Java web application. I will tell you…

Posted in Gradle Liquibase Spring Boot

Spring Boot Liquibase Gradle Example with XML based Configuration

For your Java application you need to check the code coverage of your Junit test classes. Code coverage ensures your code quality for the Junit test cases you have written for your functionalities of the application. Here I am going to show you how you can use Jacoco plugin to test the coverage. Currently it…

Posted in Code Quality Gradle Junit

Junit Code Coverage using Gradle, Jacoco