I'm using gradle 0.8 against a Nexus repository. When I upload to the
releases, everything works fine;

uploadArchives {
    repositories.mavenDeployer {
        repository(url:
"http://myhost:8081/nexus/content/repositories/releases";) {
            authentication(userName: "deployment", password: "xxx")
        }
    }
}

If I try to upload to the snapshots, I get an exception:

uploadArchives {
    repositories.mavenDeployer {
        repository(url:
"http://myhost:8081/nexus/content/repositories/snapshots";) {
            authentication(userName: "deployment", password: "xxx")
        }
    }
}


HTTP 400 means "bad request". If I look in Nexus' log I see this:

Storing of item
snapshots:/nl/knowledgeplaza/KpUtil/1.xx-snapshot/KpUtil-1.xx-snapshot.jar
is forbidden by Maven Repository policy. Because snapshots is a SNAPSHOT
repository


This naturally confuses me; I cannot store a snapshot in a snapshot
repository? I verified both repositories and releases is indeed set to
"release" with disabled redeploy, and snapshot is set to "snapshot" with
enabled redeploy. That makes sense.

I'm not very fluent in Maven and hope to pass that station using Gradle.
What are the dynamics here? Where do I tell gradle that this is a snapshot?
-- 
View this message in context: 
http://old.nabble.com/uploading-to-releases-works%2C-to-snapshots-not-tp26917039p26917039.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to