Hi Tomer,

I have tried this same configuration in order to get gradle to recognize an
artifact produced by grails using the grails-gradle plugin. I have even
tried copying the config you provided into my build.gradle and still have
the same result:

15:26:59.279 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred
evaluating root project 'webportal'.
15:26:59.281 [ERROR] [org.gradle.BuildExceptionReporter] Cause: Could not
find property 'buildInfo' on root project 'webportal'.

I am using the jenkins artifactory plugin to deploy the artifacts into
artifactory, but the sticking point right now is getting gradle to recognize
the war built by grails. Do you have any ideas as to why it's not
recognizing the buildInfo task?

Here is what I have in my build.gradle:

configurations {
    webportaltest
}

task buildWebportal {
    configurations.webportaltest.addArtifact( new DefaultPublishArtifact(
"web_portal", "war", "war", null, new Date(), file('target/web_portal.war')
) )
}

task buildInfo.configuration = configurations.webportaltest

task buildInfo.doFirst {
    buildWebportal
}

Thanks,
-Phil

--
View this message in context: 
http://forums.jfrog.org/Hudson-failing-to-deploy-artifacts-to-Artifactory-using-the-plugin-tp6015500p6506346.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to