Category: Gradle
Gradle
Table of Contents Introduction Wny do you need a single jar or war Prerequisites Generating Jar Generating Thin Jar Generating Fat Jar Generating War Generating Thin War Generating Fat War Source Code Introduction Generally most of the Spring Boot applications generate jar archive for deployment. Very few Spring Boot applications generate war archive for deployment…
Table of Contents Introduction Prerequisites Include Non-classpath Jars In Gradle Script Introduction Here in this example I am going to tell you how to include non-classpath jars in gradle based Java project. You may need to include non-classpath jar files in order to make your application run. Non-classpath jars are those jar files which are not included in your classpath through dependency…
Table of Contents Introduction Why do you need to create Gradle project in CLI Prerequisites Create Gradle Project in CLI Introduction Here I am going to show you how to create a new Gradle in CLI (command line interface). Command line interface is basically a command prompt in Windows system and Shell terminal in Unix…
Table of Contents Introduction Prerequisites Exclude Dependencies/Libraries Exclude Per Configuration Exclude Per Dependency Introduction I am going to show you how to exclude dependency from build.gradle script in gradle based Java project. Specially when you use several starter dependencies in your Spring Boot project, then many children dependencies are found and hence many libraries are downloaded in the project’s classpath. These many libraries may…
Introduction In this example, I am going to show you how to find dependency hierarchy using gradle build tool in your Java based projects. Your Spring Boot projects might be using gradle build tool and you want to check what dependencies are used in your project. You can easily find what libraries are used in your project by looking…
Introduction Are you stuck or confused how to build a Java or Spring Boot project when your system has multiple versions of Java or JDK installed? I will show you how to use specific jdk version for gradle build. Java version might be different in your classpath than what you want to use in your…