Ads
Ads
In this section developers will find the maven dependency for org.powermock, powermock-api-mockito2 version 2.0.2.. Learn to use powermock-api-mockito2 version 2.0.2 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 powermock-api-mockito2 version 2.0.2 dependency in the project.
The powermock-api-mockito2 version 2.0.2 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 powermock-api-mockito2 version 2.0.2 given here.
Java project using maven can easily download powermock-api-mockito2 version 2.0.2 dependency in your project once you add this dependency in your project. You can add following code in your pom.xml file to get powermock-api-mockito2 version 2.0.2 version maven dependency in your project.
<dependency> <groupId>powermock-api-mockito2</groupId> <artifactId>powermock-api-mockito2</artifactId> <version>2.0.2</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 powermock-api-mockito2 version 2.0.2 in your project. Maven makes it very easy to quickly download powermock-api-mockito2 dependency packages of specified version e.g. version 2.0.2 in this case.
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 powermock-api-mockito2 version 2.0.2. To check the dependency of powermock-api-mockito2 version 2.0.2 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 powermock-api-mockito2 version 2.0.2 following is the dependency tree:
DEPENDENCY TREE
Here is the screen shot of the command:
IMAGE_DEPENDENCY TREE
The powermock-api-mockito2 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.
Here is the Gradle dependency for powermock-api-mockito2 version 2.0.2:
implementation group: 'powermock-api-mockito2', name: 'powermock-api-mockito2', version: '2.0.2'
Here is the SBT dependency for powermock-api-mockito2 version 2.0.2:
libraryDependencies += "powermock-api-mockito2" % "powermock-api-mockito2" % "2.0.2"
Here is the Ivy dependency for powermock-api-mockito2 version 2.0.2:
<dependency org="powermock-api-mockito2" name="powermock-api-mockito2" rev="2.0.2"/>
Here is the Gradle dependency for powermock-api-mockito2 version 2.0.2:
@Grapes( @Grab(group='powermock-api-mockito2', module='powermock-api-mockito2', version='2.0.2') )
Here is the Leiningen dependency for powermock-api-mockito2 version 2.0.2:
[powermock-api-mockito2/powermock-api-mockito2 "2.0.2"]
Here is the Buildr dependency for powermock-api-mockito2 version 2.0.2:
'powermock-api-mockito2:powermock-api-mockito2:jar:2.0.2'
In this section we have explored powermock-api-mockito2 version 2.0.2 dependency and learned how to use this dependency in Java projects.