Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8197011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:38:59+00:00 2026-06-07T05:38:59+00:00

I am learning to use git and gradle to build Spring 3.2 on my

  • 0

I am learning to use git and gradle to build Spring 3.2 on my local system.
I cloned the git repo and used the gradlew command to start the build like so:

gradlew build

I also have the GRADLE_HOME set up and added GRADLE_HOME/bin to my PATH variable.

Every time I start up the build I see a .gradle directory being created in my directory C:\Users\Ayusman and it seems to download gradle binaries.

My questions:

  1. Since I already have gradle installed on my system; why does it have to download gradle?
  2. Can I force gradle to put my dependencies in a specific directory instead of the users folder (like I can specify in maven)?
  3. Can gradle be pointed to pull from a local repo instead of internet?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:39:02+00:00Added an answer on June 7, 2026 at 5:39 am

    ad 1. In order to build with your locally installed Gradle, you have to invoke gradle rather than gradlew. The purpose of gradlew (called the Gradle Wrapper) is for everybody to use the same Gradle version and not having to install Gradle manually.

    ad 2. To change where Gradle puts dependencies (and other global information), you can set the GRADLE_USER_HOME environment variable.

    ad 3. You just need to add another repository declaration to build.gradle. Something like:

    allprojects {
        repositories {
            maven {
                url "http://..."
            }
        }
    }
    

    If you want to use this repository for all your builds, you can put the same declaration into ~/.gradle/init.gradle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning to use Gradle by putting together a few simple build scripts as
I am just learning how to use git and would like to follow a
I am working on learning how to use git and the section I am
I'm just learning to use RVM, and would like to know how I can
I've just started learning how to use git today, progressing well. As an experiment,
I'm pretty used to git by now, and I'm about to start contributing to
I'm learning to use Springsource Tool Suite (STS) and the Spring framework for development.
Learning to use the fork() command and how to pipe data between a parent
I created a small local Git repository on my laptop to start some work.
I am learning to use GWT with App Engine in Eclipse. I included the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.