Publish only the jar that was build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Publish only the jar that was build

gilk
Hi
We have a multi project in gradle and the artifactory plugin.
When we change the code in one of the sub project only the subproject jar is being build BUT the plugin publish ALL the jars.
How I can publish only the jar/jars that was build.
Thanks
Gil
Reply | Threaded
Open this post in threaded view
|

Re: Publish only the jar that was build

HughG_TMVSE
Hi Gil,

not sure, but you might be able to use Gradle's Task#didWork and Task#onlyIf methods, something like this:

project.tasks['publish'].onlyIf {
    project.tasks['jar'].didWork
}

It may be worth asking on the Gradle forums, as this question isn't specific to Artifactory: https://discuss.gradle.org/

Regards,

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799
http://www.tmvse.com / mailto:[hidden email]

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.


-----Original Message-----
From: gilk [mailto:[hidden email]]
Sent: 14 October 2015 17:37
To: [hidden email]
Subject: [Artifactory-users] Publish only the jar that was build

Hi
We have a multi project in gradle and the artifactory plugin.
When we change the code in one of the sub project only the subproject jar is being build BUT the plugin publish ALL the jars.
How I can publish only the jar/jars that was build.
Thanks
Gil



--
View this message in context: http://forums.jfrog.org/Publish-only-the-jar-that-was-build-tp7580517.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users