Run test case from test jar

We have multi module project for selenium test cases. We don’t want to share this project so for that have created .jar for each module with testJar task.

Now how I can run test cases from these jars? Let’s say I can create separate gradle project and want to utilize these jars and run test cases…

There should be nothing special for this. Just having make sure the test jar is indeed on the runtime classpath, by adding it as a dependency inside that other project.