Hi,
   I'm trying to move over our Maven build to Gradle and right now I'm stuck
on how to support publishing snapshots.  My "artifactory" closure looks
like:

artifactory {
    contextUrl = "${artifactory_contextUrl}"   //The base Artifactory URL if
not overridden by the publisher/resolver
    publish {
        repository {
            repoKey = 'libs-release-local'
            username = "${artifactory_user}"
            password = "${artifactory_password}"
            maven = true

        }
        repository {
            repoKey = 'libs-snapshot-local'
            username = "${artifactory_user}"
            password = "${artifactory_password}"
            maven = true

        }
    }
    resolve {
        repository {
            repoKey = 'libs-release'
            username = "${artifactory_user}"
            password = "${artifactory_password}"
            maven = true

        }
    }
}

However, when I try to publish, I get:

Execution failed for task ':artifactoryPublish'.
> Failed to deploy file: HTTP response code: 409. HTTP response message: The
> repository 'libs-snapshot-local' rejected the artifact
> 'libs-snapshot-local:com/foobar/Widget/3.12.0/Widget3.12.0.pom' due to its
> snapshot/release handling policy.

So it looks like it's trying to publish a release to the snapshot
repository.  I tried declaring the snapshot repo as "snapshotRepository",
ala the maven plugin, but that doesn't seem to work.  What is the proper way
of declaring a snapshot repo using the Artifactory plugin?

Regards,
Adam





--
View this message in context: 
http://forums.jfrog.org/Publishing-Snapshots-with-Gradle-Plugin-tp7578211.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to