Support artifacts upload from Maven/Gradle using basic-http auth

Context

As of %16.0, the Package Registry supports basic-http auth for pulling Maven, Gradle, and Scala packages.

Problem to solve

The problem is that you cannot publish Maven, Gradle, and Scala packages using basic auth.

Workaround

Please note you can use a Deploy Token which will allow you to use basic auth.

Proposal

Expand on the work completed in #212854 (closed) to add support for publishing Maven and Gradle packages using basic auth.

Please note that this issue will NOT cover publishing Scala packages which is covered in #408479 (closed).

Edited by Tim Rizzi