Thanks Alex, for the suggestions, but they dont work for me.

My defaults are (and have been)
  defaults {
        publishBuildInfo = true   //Publish build-info to Artifactory (true
by default)
        publishArtifacts = true   //Publish artifacts to Artifactory (true
by default)
        publishPom = false   //Publish generated POM files to Artifactory
(true by default).
        publishIvy = false  //Publish generated Ivy descriptor files to
Artifactory (true by default)
        publications( 'build' )
    }

Still I get the Ivy file published:

$ gradle artifactoryPublish
:bootstrap:buildRpm UP-TO-DATE
:bootstrap:generateDescriptorFileForBuildPublication
:bootstrap:artifactoryPublish
Deploying artifact:
http://xxx.artifactoryonline.com/xxx/yum-nexstra-local/ivy/dev/xxx-bootstrap-0.4-ivy.xml
Deploying artifact:
http://xxx.artifactoryonline.com/xxx/yum-nexstra-local/dev/xxx/bootstrap/xxx-bootstrap-0.4-noarch.rpm
Deploying build descriptor to:
http://xxx.artifactoryonline.com/nexstra/api/build
Build successfully deployed. Browse it in Artifactory under
http://xxx.artifactoryonline.com/xxx/webapp/builds/rpms/2235/2015-06-23T11:38:09.771-0400/

BUILD SUCCESSFUL



I tried the other code and it gives the error:

> Could not find method published() for arguments
> [{file=build/distributions/nexstra-bootstrap-0-4.noarch.rpm,
> name=nexstra-bootstrap-0-4.noarch.rpm, type=rpm, classifier=classifier}]
> on project ':bootstrap'.

This may be because Im using publications not configurations ...
Im creating the RPM with the ospackage plugin and that's what it sets up.





--
View this message in context: 
http://forums.jfrog.org/Suggestion-for-publishing-pure-RPM-s-to-Artifactory-Pro-YUM-repository-using-Gradle-tp7580347p7580351.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to