Gradle proxy authentication when building appium-espresso-server

I am using Appium for automated testing using the appium-espresso-driver. On first launch, the espresso driver attempts to build itself using a gradle wrapper. The gradle wrapper tries to download the relevant gradle version. I am behind an ssl proxy and received a proxy authentication error. I entered my proxy authentication details in GRADLE_USER_HOME/gradle.properties (In my case this is C:\Users[UserName]\gradle.properties. This got past the proxy authentication error. However later in the process I got another 407 Proxy auth error from Gradle. I thought updating the gradle.properties should work for the entire gradle build but apparently not. My gradle.properties looks like this:

systemProp.http.proxyHost=[my proxy host]
systemProp.http.proxyPort=[my proxy port]
systemProp.http.proxyUser=[my proxy user name]
systemProp.http.proxyPassword=[my proxy password]

systemProp.https.proxyHost=[my proxy host]
systemProp.https.proxyPort=[my proxy port]
systemProp.https.proxyUser=[my proxy user name]
systemProp.https.proxyPassword=[my proxy password]

The output of the build looks like this:

[debug] [Espresso] Output from Gradle will be logged. To change this, use 'showGradleLog' desired capability
[Gradle] [STDOUT] Watching the file system is not supported on this operating system.
[Gradle] [STDOUT]
[Gradle] [STDOUT] > Configure project :
[Gradle] [STDOUT] NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
[Gradle] [STDOUT] NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
[Gradle] [STDOUT] NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
[Gradle] [STDERR]
[Gradle] [STDERR] FAILURE: Build failed with an exception.
[Gradle] [STDERR]
[Gradle] [STDERR] * What went wrong:
[Gradle] [STDERR] A problem occurred configuring root project 'espresso-server-emulator-5554'.
[Gradle] [STDERR] > Could not resolve all artifacts for configuration ':classpath'.
[Gradle] [STDERR]    > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10.
[Gradle] [STDERR]      Required by:
[Gradle] [STDERR]          project :
[Gradle] [STDERR]       > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10.
[Gradle] [STDERR]          > Could not get resource 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.10/kotlin-gradle-plugin-1.6.10.pom'.
[Gradle] [STDOUT] NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
[Gradle] [STDERR]             > Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.10/kotlin-gradle-plugin-1.6.10.pom'. Received status code 407 from server: Proxy Authentication Required
[Gradle] [STDERR]       > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10.
[Gradle] [STDERR]          > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.10/kotlin-gradle-plugin-1.6.10.pom'.
[Gradle] [STDERR]             > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.10/kotlin-gradle-plugin-1.6.10.pom'. Received status code 407 from server: Proxy Authentication Required
[Gradle] [STDERR]    > Could not resolve com.android.tools.build:gradle:7.0.3.
[Gradle] [STDERR]      Required by:
[Gradle] [STDERR]          project :
[Gradle] [STDERR]       > Could not resolve com.android.tools.build:gradle:7.0.3.
[Gradle] [STDERR]          > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.0.3/gradle-7.0.3.pom'.
[Gradle] [STDERR]             > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.0.3/gradle-7.0.3.pom'. Received status code 407 from server: Proxy Authentication Required
[Gradle] [STDERR]       > Could not resolve com.android.tools.build:gradle:7.0.3.
[Gradle] [STDERR]          > Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.0.3/gradle-7.0.3.pom'.
[Gradle] [STDERR]             > Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.0.3/gradle-7.0.3.pom'. Received status code 407 from server: Proxy Authentication Required
[Gradle] [STDERR]
[Gradle] [STDERR] * Try:
[Gradle] [STDERR] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[Gradle] [STDERR]
[Gradle] [STDERR] * Get more help at https://help.gradle.org
[Gradle] [STDERR]
[Gradle] [STDERR] BUILD FAILED in 2s

Any ideas would be much appreciated.