Skip to playerSkip to main content
  • 3 weeks ago
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
Be the first to comment
Add your comment

Recommended