As the error indicates, the project is configured to publish ivy and pom
files (true, by default), but none are configured.

You can turn off ivy and pom publishing in the 'defaults' section of the
plugin 
DSL<http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin>(publishPom=false
and publishIvy=false); configure the specific location for
the ivy file and pom file (ivyDescriptor= and mavenDescriptor=); or, set up
ivy/pom publishing.

For example to configure ivy uploading for the upload task configuration
('archives' in this case), use:

uploadArchives {
  uploadDescriptor = true
}

You didn't apply the 'maven' plugin, so I assume you wish pom publishing to
be off.

HTH,
Yoav

On Mon, Jun 6, 2011 at 10:09 PM, Andy Goodspeed <agoodsp...@cfglife.com>wrote:

> I am trying to get my Gradle build to upload to Artifactory using the
> plugin. It doesn't seem to be working and I have no idea why.
>
> I gave up working on this with my live projects and am now working on a
> simple test project. It is a Java project with one class and one dependency
> (log4j). Everything works, including resolving the dependency and generating
> the jar, up to the upload. I have even tried using invalid credentials in
> hopes of eliciting an error of some sort.
>
> Below is my build.gradle. Why am I not getting gradletest.jar uploaded to
> lib-release-local in my Artifactory instance, an error, or something? Is it
> trying to give me a hint with:
>
> Cannot publish Ivy descriptor if ivyDescriptor not set in task
> ':artifactoryPublish'
> And task 'uploadArchives' does not export the Ivy descriptor.
> Cannot publish Maven descriptor if mavenDescriptor not set in task
> ':artifactoryPublish'
> And default install task for project ':' is not an Upload task
>
> Thanks.
>
> -Andrew Goodspeed
>
> "How *reliable* [is he]? How shallow is the ocean? How cold is the sun?"
> -Douglas Adams (Arthur Dent)
>
> --build.gradle--
>
> apply plugin: 'java'
> apply plugin: 'artifactory'
>
> // Project root name cannot be set here, so check that settings.gradle (or
> whatever) has it set properly
> assert name == 'gradletest'
>
> // "group" equates to "organisation"
> group = 'com.me'
>
> artifactory {
>   contextUrl = 'http://artifactory.me.com/artifactory'
>
>   publish {
>     repository {
>       repoKey = 'libs-release-local'
>       username = 'hacker'
>       password = 'unauthorized'
>       ivy {
>         ivyLayout =
> '[organization]/[module]/[revision]/[type]s/ivy-[revision].xml'
>         artifactLayout =
> '[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]'
>         mavenCompatible = false
>       }
>     }
>   }
>
>   resolve {
>     repository {
>       repoKey = 'libs-release'
>     }
>   }
> }
>
> dependencies {
>   compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.5.8'
> }
>
> sourceSets {
>   main {
>     java {
>       srcDir 'src'
>     }
>   }
> }
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> Artifactory-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Artifactory-users mailing list
Artifactory-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to