Maven Dependency for org.testng, testng version 7.0.0-beta2

In this section developers will find the maven dependency for org.testng, testng version 7.0.0-beta2.. Learn to use testng version 7.0.0-beta2 dependency with Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr build tools

Maven Dependency for org.testng, testng version 7.0.0-beta2

In this section developers will find the maven dependency for org.testng, testng version 7.0.0-beta2.. Learn to use testng version 7.0.0-beta2 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 testng version 7.0.0-beta2 dependency in the project.

The testng version 7.0.0-beta2 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 testng version 7.0.0-beta2 given here.

How to use testng version 7.0.0-beta2 in Java Maven project?

Java project using maven can easily download testng version 7.0.0-beta2 dependency in your project once you add this dependency in your project.  You can add following code in your pom.xml file to get testng version 7.0.0-beta2 version maven dependency in your project.

<dependency>
	<groupId>testng</groupId>
	<artifactId>testng</artifactId>
	<version>7.0.0-beta2</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  testng version 7.0.0-beta2 in your project. Maven makes it very easy to quickly download  testng dependency packages of specified version e.g. version 7.0.0-beta2 in this case.

How to check testng version 7.0.0-beta2 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 testng version 7.0.0-beta2. To check the dependency of testng version 7.0.0-beta2 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 testng version 7.0.0-beta2 following is the dependency tree:

DEPENDENCY TREE

Here is the screen shot of the command:

IMAGE_DEPENDENCY TREE

How to use testng version 7.0.0-beta2 with Gradle, SBT, Ivy, Grape, Leiningen and Buildr?

The testng  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 testng version 7.0.0-beta2:

implementation group: 'testng', name: 'testng', version: '7.0.0-beta2'

SBT

Here is the SBT dependency for testng version 7.0.0-beta2:

libraryDependencies += "testng" % "testng" % "7.0.0-beta2"

Ivy

Here is the Ivy dependency for testng version 7.0.0-beta2:

<dependency org="testng" name="testng" rev="7.0.0-beta2"/>  

Grape

Here is the Gradle dependency for testng version 7.0.0-beta2:

 @Grapes(
	@Grab(group='testng', module='testng', version='7.0.0-beta2')
)

Leiningen

Here is the Leiningen dependency for testng version 7.0.0-beta2:

[testng/testng "7.0.0-beta2"]

Buildr

Here is the Buildr dependency for testng version 7.0.0-beta2:

'testng:testng:jar:7.0.0-beta2'

In this section we have explored testng version 7.0.0-beta2 dependency and learned how to use this dependency in Java projects.

Categories