I am using gradle-1.0-milestone-6.  I tried using the 
https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin Jenkins
Artifactory Plugin version 2.0.4 , but it fails with



14:32:07.928 [ERROR] [org.gradle.BuildExceptionReporter] Caused by:
java.lang.NoSuchMethodError:
org.gradle.api.artifacts.Configuration.getArtifacts()Ljava/util/Set;


This makes me think that this plugin doesn't support Gradle post milestone
3.


So, I decided to publish from Gradle directly.  I tried following the
instructions located on the 
http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin+using+the+snapshot+version
JFrog wiki , but neither option worked.



First, I put build-info-extractor-gradle-2.0.x-20111123.143146-11-uber.jar
into C:\Users\mmaxey\lib\gradle\gradle-1.0-milestone-6\lib\plugins.  When I
run "gradle tasks" using the attached 
http://forums.jfrog.org/file/n7028576/build.gradle build.gradle , I get the
following error indicating it couldn't find the JAR



Cause: Could not find method artifactory() for arguments
[build_5m0on46jt8hrhidkd3pd27nk8u$_run_closure4@74d175ff] on root project '
quickstart'.



I then tried the second option using 
http://forums.jfrog.org/file/n7028576/init.gradle init.gradle  and received
the following exception:



07:54:37.115 [ERROR] [org.gradle.BuildExceptionReporter]
org.gradle.api.internal.artifacts.ivyservice.ModuleVersionNotFoundException:
Could not find group:org.jfrog.buildinfo,
module:build-info-extractor-gradle, version:2.0.x-SNAPSHOT.


If you do a GAVC search in http://repo.jfrog.org, it will fail to find the
above module ID.  I'm guessing this is because the POM version is
2.0.x-SNAPSHOT but the the JAR's version is 2.0.x-20111123.143146-11?  The
GAVC fails with either version ID.  Same with the init.gradle.


I then tried copying the JAR into my own local Artifactory instance, but ran
into several problems (I won't go into here).


All told, I've spent about 5 hours on this.  I get super frustrated by these
kinds of problems.  It makes me question whether using Gradle is a good idea
...


--
View this message in context: 
http://forums.jfrog.org/Publishing-Build-Info-via-Gradle-post-milestone-3-tp7028576p7028576.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to