For instance, i want to download 60 build version from archiva to my local server path by providing ‘version’ argument 60 to build task.
could you please suggest how can i achieve this.
I have used given archiva project property (archivaVersion)and it is working fine.
gradle download -ParchivaVersion=60
src “http://…/{archivaVersion}/projec-{archivaVersion}”
But problem is that i do not want to provide archivaVersion argument to other task. while executing other task it is failing due to unknown property error. Hence i am using my own property
Error while executing other task : gradle stop
Could not get unknown property ‘archivaVersion’ for task ‘:download’ of type de.undercouch.gradle.tasks.download.Download.
So i have used custom property(${project.findProperty(‘myProp’)}) and now this error is not coming for other tasks.
Am i doing correct way here?