jfrog-azure-devops-extension
jfrog-azure-devops-extension copied to clipboard
Artifactory Gradle Task
Similar to our offerings for NPM, Docker, Maven, Go, etc, it would be ideal to have a Gradle Task as well to allow for the gathering of Build Info on Gradle builds. Since the JFrog CLI offers build commands for Gradle, and being that the Tools Task takes care of the Maven Extractor dependency, this would fit in really well with the existing tasks.
Currently the workaround is to create a POM from the Gradle build and use the Maven Task to collect dependency information.
@AngelloMaggio, the Artifactory Gradle task is included in the last release 1.9.0. You can find the documentation here. We'll appreciate your feedback for that.
@yahavi does your artifactory gradle task work with java11/ubuntu-latest for you?
Edit: I had to set JAVA_HOME variable. The azure devops gradle plugin somehow didn't require it 🤔
@AngelloMaggio, the Artifactory Gradle task is included in the last release 1.9.0. You can find the documentation here. We'll appreciate your feedback for that.
the documentation is not really helpful...i've done jfrog cli with a build.gradle so i know how to do that...but is the build.gradle going to be the same for azure devops gradle deploy tasks? what folder should the build.gradle be in? what variables should be in build.gradle? what variables shouldn't be in build.gradle? how do we get artifact name from azure into build.gradle? how do we get build number from azure into build.gradle? giving answers to these questions will make the documentation much more useful
@PapaWhiskey65 I am struggling with the same issue and can't seem to find any helpful examples online. Have you managed to deploy an artifact using the Gradle task?
@PapaWhiskey65 I am struggling with the same issue and can't seem to find any helpful examples online. Have you managed to deploy an artifact using the Gradle task?
i was able to upload via gradle, the integration with TFS/azure never seemed to work, and another engineer came up with how to upload our build from TFS/azure
I actually managed to deploy an artifact using the Artifactory Gradle Task. I had to set the artifactory plugin in my project build.gradle and use a system variable in the azure pipeline to access credentials which kinda makes the Artifactory Gradle Task redundant and could have been done with a simple Gradle Task but still if someone is interested how I set up the task:

@yahavi How can I define a snapshot repository besides a releases repository? and how to define more than one repo ?