I am trying to build a custom plugin which will configure the uploadArchives task. This is what i tried and i am getting an error around missing mavenDeployer method.
I am calling below piece of code in my custom task.
And the UploadTask is where i configure the maven properties (as detailed in my first query). Looks to me i am missing some thing, but not sure what that is. Will appreciate any inputs in this regard.
I just saw the issue. You should not be referring to project.repositories in your Upload task. The task has it’s own repositories { } block to be configured. That is, we separate where to download dependencies from and where to publish dependencies to. The task should instead look something like:
Could not find method mavenDeployer() for arguments [build_15i9c45h051nli48dzvw5o7sl$_run_closure3$_closure7$_closure8@fd7d8d5] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.