Is it possible to get a path to jarFile which presents a jar file writen in dependencies block?
Sample instance:
apply plugin: 'java'
repositories.mavenCentral()
dependencies {
testCompile 'org.testng:testng:6.8.1'
}
task myTask(){
// ...
getDependenciesPath()
/// ...
}
String getDependenciesPath(){
// code that gets the path to already compiled TESTNG library...
}
Basicaly that is because I need to execute a task, which should contain a path to library, which it depends On