Skip to content

Add support for programmatic repository authentification #126

@holgerbrandl

Description

@holgerbrandl

Currently, the shrinkwrap API does not (seem to) support programmatic authentication for RemoteRepos but only credentials integration via maven settings.

It would be great if we could use also the API to provide credentials, e.g. when adding a repo to a resolver instance

 val resolver = Maven.configureResolver().withMavenCentralRepo(true)
            .withRemoteRepo("jcenter", "https://jcenter.bintray.com/", "default", "<USERNAME>", "<PASSWORD>")

(The last 2 args are just mock and are not supported yet)

E.g. https://github.com/jcabi/jcabi-aether supports this mode (but is no longer developed)

Also, see kscripting/kscript#239 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions