Skip to content

How to override uploadArchives to allow publishing without modifying gradle.buildΒ #53

@rbellamy

Description

@rbellamy

I'd like to fork this and add a bit of functionality for a possible PR. I am struggling with the gradle build. I realize this question might be better served in a Groovy or Gradle forum - but I'm really more interested in DbSetup than I am in learning the intricacies of Gradle, so I'll post it here first...

Specifically, I'd like to be able to override the uploadArchives task in your build.gradle to allow me to publish my altered artifact to our internal nexus server - for testing. I'd like to do this without having to modify the build.gradle file, via an init.gradle.

I can change the dependency resolver repositories using recommendation in the 42.5 Init script plugins docs.

I've found little in forums, docs or IRC to describe how I would override (or overwrite) the uploadArchives task from the build.gradle. The closest I've come (and it does NOT work) is found in this init.gradle.

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