Vidhi
Vidhi

Reputation: 35

Run gradle Project in Eclipse

I am working with the Gradle build system in the Eclipse IDE. Whenever I create Gradle project in Java I always need to go to command prompt and then to specific project directory and build it first through command gradle build followed with the my corporate proxy settings. I am not able to build it directly from the IDE. can anyone suggest Where I can add my proxy setting to make it build and run my Gradle project from the Eclipse IDE directly rather than going to command prompt always.

Thanks in advance :-)

Upvotes: 0

Views: 2372

Answers (1)

Vampire
Vampire

Reputation: 38669

You can define the proxy settings in gradle.properties in your root project directory if it is the same for anyone using that repository, or in ~/.gradle/gradle.properties to set it for any Gradle project on your machine but not affecting other users of the repository.

See here for further information about the proper syntax.

Upvotes: 1

Related Questions