jfrog-azure-devops-extension icon indicating copy to clipboard operation
jfrog-azure-devops-extension copied to clipboard

Artifactory Gradle Task

Open AngelloMaggio opened this issue 5 years ago • 7 comments

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 avatar Jan 07 '20 18:01 AngelloMaggio

@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 avatar Apr 02 '20 06:04 yahavi

@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 🤔

cubimon avatar Apr 08 '20 10:04 cubimon

@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 avatar Nov 24 '20 23:11 PapaWhiskey65

@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?

AndyGettingAn avatar Mar 17 '21 10:03 AndyGettingAn

@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

PapaWhiskey65 avatar Mar 17 '21 17:03 PapaWhiskey65

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:

Bildschirmfoto 2021-03-18 um 08 04 35

AndyGettingAn avatar Mar 18 '21 07:03 AndyGettingAn

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

mo-saeed avatar Mar 26 '21 14:03 mo-saeed