I am writing a gradle plugin and what I need is the following:
Assuming in gradle some configures following project dependencies:
project(':myProject') {
dependencies {
runtime ('extensions:javascript-console-repo-4.0.x:0.5')
providedCompile( 'org.alfresco.enterprise-sdk:alfresco:'+alfrescoTargetVersion ) { exclude group:'com.sun.jdmk', module: 'jmxtools' }
providedCompile( 'javax.servlet:servlet-api:2.5' )
providedCompile( 'javax.servlet:jsp-api:2.1' )
providedCompile( 'org.alfresco.enterprise:alfresco:'+alfrescoTargetVersion+'@war' )
}
}
Inside of my plugin I want to know which runtime dependencies are included in the project (in that example extensions:javascript-console-repo-4.0.x:0.5) AND FROM WHERE IT WAS DOWNLOADEDS! That means I need the repository download information/path (of the artifactory). Is there a way to get this information? I need them, because I must generate a file with this information, for an other application who must download this files - the runtime dependencies.
Thank you very much for helping to find the answer!
Best regards Amin Zamani