简体   繁体   English

在Eclipse中运行gradle Project

[英]Run gradle Project in Eclipse

I am working with the Gradle build system in the Eclipse IDE. 我正在Eclipse IDE中使用Gradle构建系统。 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. 每当我用Java创建Gradle项目时,我总是需要转到命令提示符,然后转到特定的项目目录,并首先通过命令gradle build和公司代理设置进行构建。 I am not able to build it directly from the IDE. 我无法直接从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. 谁能建议我可以在哪里添加我的代理设置,以使其直接从Eclipse IDE生成并运行Gradle项目,而不是总是转到命令提示符。

Thanks in advance :-) 提前致谢 :-)

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. 您可以在根项目目录中的gradle.properties中定义代理设置(如果使用该存储库的任何人都相同),或在~/.gradle/gradle.properties为您的计算机上的任何Gradle项目设置~/.gradle/gradle.properties设置,但不影响其他设置存储库的用户。

See here for further information about the proper syntax. 有关正确语法的更多信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM