JB Nizet
JB Nizet

Reputation: 692053

Understanding Gradle's mavenDeployer

I'm a newbie in Gradle and Groovy in general, and I'm trying to understand the following example from the Gradle user guide, and especially how I could find, in the DSL documentation, where all these options can be found:

uploadArchives {
    repositories.mavenDeployer {
        name = 'sshDeployer' // optional
        configuration = configurations.deployerJars
        repository(url: "scp://repos.mycompany.com/releases") {
            authentication(userName: "me", password: "myPassword")
        }
    }
}

What I understand:

What I don't understand:

Upvotes: 16

Views: 17834

Answers (1)

Matt
Matt

Reputation: 8476

Gradle DSL documentation is not especially comprehensive. It's not always clear where public api stops and private impl starts & often the source code is the only place to get a comprehensive view (so I find it is generally easiest to link the src code to my IDE).

In your specific case, the userguide + the source code is the best way to navigate.

EDIT: this answer refers to an old version of gradle so the userguide link above points to that old version, current day (v7.4.2 at the time of writing) gradle uses a different plugin which is described in https://docs.gradle.org/current/userguide/userguide_single.html#publishing_maven

Upvotes: 6

Related Questions