Maven Dependency for org.springframework.boot, spring-boot-starter-data-mongodb version 2.4.1

In this section developers will find the maven dependency for org.springframework.boot, spring-boot-starter-data-mongodb version 2.4.1.. Learn to use spring-boot-starter-data-mongodb version 2.4.1 dependency with Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr build tools

Ads

Ads

Maven Dependency for org.springframework.boot, spring-boot-starter-data-mongodb version 2.4.1

In this section developers will find the maven dependency for org.springframework.boot, spring-boot-starter-data-mongodb version 2.4.1.. Learn to use spring-boot-starter-data-mongodb version 2.4.1 dependency with Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr build tools.

In this section we will see the dependency code that can be added to Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr  based project in order to get spring-boot-starter-data-mongodb version 2.4.1 dependency in the project.

The spring-boot-starter-data-mongodb version 2.4.1 is released on DATE and its available on the remote repositories such as maven central repositories, which can be used used by developer in their projects. They just have to add the dependency code of spring-boot-starter-data-mongodb version 2.4.1 given here.

How to use spring-boot-starter-data-mongodb version 2.4.1 in Java Maven project?

Java project using maven can easily download spring-boot-starter-data-mongodb version 2.4.1 dependency in your project once you add this dependency in your project.  You can add following code in your pom.xml file to get spring-boot-starter-data-mongodb version 2.4.1 version maven dependency in your project.

<dependency>
	<groupId>spring-boot-starter-data-mongodb</groupId>
	<artifactId>spring-boot-starter-data-mongodb</artifactId>
	<version>2.4.1</version>
</dependency>

Above dependency code will download the necessary jar files along with all the dependent packages if any from the remote repositions in your project and you will be able to use the  spring-boot-starter-data-mongodb version 2.4.1 in your project. Maven makes it very easy to quickly download  spring-boot-starter-data-mongodb dependency packages of specified version e.g. version 2.4.1 in this case.

How to check spring-boot-starter-data-mongodb version 2.4.1 library dependencies?

Maven comes with the handy command for finding the dependent libraries in maven based Java projects and this will help us in getting the dependencies tree of spring-boot-starter-data-mongodb version 2.4.1. To check the dependency of spring-boot-starter-data-mongodb version 2.4.1 you can run following maven command into your project:

mvn dependency:tree

Above command gives the list of all the dependent libraries. In case of spring-boot-starter-data-mongodb version 2.4.1 following is the dependency tree:

DEPENDENCY TREE

Here is the screen shot of the command:

IMAGE_DEPENDENCY TREE

How to use spring-boot-starter-data-mongodb version 2.4.1 with Gradle, SBT, Ivy, Grape, Leiningen and Buildr?

The spring-boot-starter-data-mongodb  can also be used with the other build tools such as Gradle, SBT, Ivy, Grape, Leiningen and Buildr. Let's see the dependency code to be added in the project using these build tools.

Gradle

Here is the Gradle dependency for spring-boot-starter-data-mongodb version 2.4.1:

implementation group: 'spring-boot-starter-data-mongodb', name: 'spring-boot-starter-data-mongodb', version: '2.4.1'

SBT

Here is the SBT dependency for spring-boot-starter-data-mongodb version 2.4.1:

libraryDependencies += "spring-boot-starter-data-mongodb" % "spring-boot-starter-data-mongodb" % "2.4.1"

Ivy

Here is the Ivy dependency for spring-boot-starter-data-mongodb version 2.4.1:

<dependency org="spring-boot-starter-data-mongodb" name="spring-boot-starter-data-mongodb" rev="2.4.1"/>  

Grape

Here is the Gradle dependency for spring-boot-starter-data-mongodb version 2.4.1:

 @Grapes(
	@Grab(group='spring-boot-starter-data-mongodb', module='spring-boot-starter-data-mongodb', version='2.4.1')
)

Leiningen

Here is the Leiningen dependency for spring-boot-starter-data-mongodb version 2.4.1:

[spring-boot-starter-data-mongodb/spring-boot-starter-data-mongodb "2.4.1"]

Buildr

Here is the Buildr dependency for spring-boot-starter-data-mongodb version 2.4.1:

'spring-boot-starter-data-mongodb:spring-boot-starter-data-mongodb:jar:2.4.1'

In this section we have explored spring-boot-starter-data-mongodb version 2.4.1 dependency and learned how to use this dependency in Java projects.