The command ‘./gradlew dependencies --configuration _lib’ shows the dynamic versioning of my dependencies:
_lib
±-- net.group:apptest:1.0.0
±-- net.group:project2-api:2.0.+ -> 2.0.0 // here
— net.group:demo_lib:1.0.0
I’m writing a plugin and want to copy this output into a txt file. Is it possible to execute this ‘dependencies’ task as code inside a custom plugin?
Currently I have this as a Task:
’’‘
File file = new File("${path}")
project.configurations._lib.each() {
file.write(it.name)
}
}
’’'
But this does not show the dynamic versioning
I guess I’m asking for a lot here, but please , if possible, point me in the right direction.