Gradle, exclude artifact when loading in Artifactory

I have a Gradle build that works in Jenkins and Deploys to Artifactory using the Artifactory plugin for Jenkins. I upload the tar.gz file to Artifactory. The plugin loads tar.gz correctly, but also loads jar .

How can I exclude a jar so that it is not deployed in Artifactory?

build.gradle (artifact section)

 artifacts { archives tar } 
+6
source share
1 answer

If you don't need a jar, maybe you shouldn't use the java plugin? Check out the various base plugins , one of which might be better.

0
source

Source: https://habr.com/ru/post/947324/


All Articles