Dear Gradle experts,
I have been trying to consume custom gradle plugin that I wrote. Task is working when I refer jar in local repository. But I am unable to get it worked when it is deployed into remote repository.
//fatjar is located on http:// artifactory-slc.com/artifactory/testdependencies/ttsclient/0.11/ttsclient-all-0.11.jar
buildscript {
repositories {
maven {
url: “http://artifactory-slc.com/artifactory/testdependencies/ttsclient/0.11/”
}
}
dependencies {
classpath files (project.property('testiqClientJar'))
}
}
apply plugin: ‘org.qa.tts’
testiqTask {
println(“Running testiqTask…!”)
}
When I execute it like: gradle -PtestiqClientJar=ttsclient-all-0.11.jar testiqTask
I am getting the following build error:
A problem occurred configuring root project ‘tts’.
Could not resolve all dependencies for configuration ‘:classpath’.
You must specify a URL for a Maven repository.