ReePrime
Setup gradle with corporate proxy and registry with spring boot JAVA application (gradle.properties)

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Setup gradle with corporate proxy and registry with spring boot JAVA application (gradle.properties)

H
Hashers Hash

1 Views • Dec 22, 2025

Description

Install and setup Gradle build tool with corporate proxy and custom registry with simple spring boot JAVA application (gradle.properties)

Download and install Gradle from : https://gradle.org/install/

Preferably paste this downloaded gradle folder in C:\
- Copy bin location from gradle folder
- Open 'Environment Variables For Your Account' from windows menu
- Edit 'path' variable
- Add the copied gradle bin location as one of the path entries

# Gradle settings using gradle.properties file

# HTTP and HTTPS proxy settings properties
systemProp.http.proxyHost=http://mycompanyproxy
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=sampleUsername
systemProp.http.proxyPassword=samplePassword
systemProp.https.proxyHost=https://mycompanyproxy
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=sampleUsername
systemProp.https.proxyPassword=samplePassword

# Custom variables to define custom/own dependency artifact
nexusUsername=sampleUsername
nexusPassword=samplePassword
nexusrUrl=https://nexus.mycompany.com/nexus-repository/

These custom variable name can be anything and same can be accessed and used in applications gradle.build file

# Git repo for this sample JAVA Spring Boot Application
https://github.com/hashers-hash/sample-springboot-gradle-application.git