Hi,
As my tests were failed due to dependency with Text NG, i tried adding testng(with different versions) related URL in the dependency section of build gradle, but the build always failed.Refer the console errors below:
Gradle.build file
apply plugin: ‘java’
apply plugin: ‘maven’
apply plugin: ‘eclipse’
repositories {
maven { url "http://repo.experitest.com:8010/Maven2/" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url 'http://mvnrepository.com/maven2' }
mavenCentral()
}
dependencies {
compile group: ‘com.experitest’, name: ‘seetest-appium’, version:‘10.8.28’
compile group: ‘com.experitest’, name: ‘hamcrest-core’, version:‘1.3’
compile group: ‘org.testng’, name: ‘testng’, version: ‘6.8.8’**
}
Console errors:
FAILURE: Build failed with an exception.
- What went wrong:
Could not resolve all dependencies for configuration ‘:compileClasspath’.
Could not resolve org.testng:testng:6.8.8.
Required by:
project :
Could not resolve org.testng:testng:6.8.8.
Could not get resource ‘http://repo.experitest.com:8010/Maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Could not GET ‘http://repo.experitest.com:8010/Maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Connect to repo.experitest.com:8010 [repo.experitest.com/207.232.40.121] failed: Connection timed out: connect
Could not resolve org.testng:testng:6.8.8.
Could not get resource ‘http://repo.maven.apache.org/maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Could not GET ‘http://repo.maven.apache.org/maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Connect to repo.maven.apache.org:80 [repo.maven.apache.org/151.101.40.215] failed: Connection timed out: connect
Could not resolve org.testng:testng:6.8.8.
Could not get resource ‘http://mvnrepository.com/maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Could not GET ‘http://mvnrepository.com/maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Connect to mvnrepository.com:80 [mvnrepository.com/52.200.112.100, mvnrepository.com/52.45.21.209] failed: Connection timed out: connect
Could not resolve org.testng:testng:6.8.8.
Could not get resource ‘https://repo1.maven.org/maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Could not GET ‘https://repo1.maven.org/maven2/org/testng/testng/6.8.8/testng-6.8.8.pom’.
Connect to repo1.maven.org:443 [repo1.maven.org/151.101.24.209] failed: Connection timed out: connect
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1 mins 46.894 secs