[英]How to know which build tool is Intellij using?
Sorry if this a noob question. 抱歉,这是一个菜鸟问题。 I haven't understand much about these Java build tools.
我对这些Java构建工具了解不多。
As far as I know, in order to build a Java project automatically, a build tool must be used. 据我所知,为了自动构建Java项目,必须使用构建工具。 Projects using Maven have
pom.xml
, those using Gradle have build.gradle
. 使用Maven的项目具有
pom.xml
,使用Gradle的项目具有build.gradle
。 I have created a small Android project in Intellij and can build and run it normally. 我在Intellij中创建了一个小型Android项目,可以正常构建和运行它。 However, I don't find any such files.
但是,我找不到任何此类文件。 Does it mean that my project is not using Maven and Gradle?
这是否意味着我的项目没有使用Maven和Gradle? If so, what build tool is Intellij using to build my project?
如果是这样,Intellij使用什么构建工具来构建我的项目?
Most (if not all) IDEs can build project themselves without any third party tool. 大多数(如果不是全部)IDE可以自行构建项目,而无需任何第三方工具。 Most IDEs however have either built-in or plugin-based integration with various build tools.
但是,大多数IDE具有与各种构建工具的内置或基于插件的集成。
The reason is that IDE typically tries to simplify the developers's work. 原因是IDE通常会尝试简化开发人员的工作。 It builds project incrementally, uses various caches etc. Build tool however is designed mostly for batch execution.
它增量构建项目,使用各种缓存等。但是构建工具主要设计用于批处理执行。 It also has incremental mode, but it is not optimized for "real-time" work.
它还具有增量模式,但尚未针对“实时”工作进行优化。
Shortly, IntelliJ as other IDE can build project using its own mechanism. 很快,IntelliJ和其他IDE可以使用其自己的机制来构建项目。 I however has integration with popular build tools like maven and gradle.
但是,我已经与流行的构建工具(例如Maven和Gradle)集成在一起。
You should use Android Studio for Android Projects, which is powered by IntelliJ. 您应该将Android Studio用于IntelliJ支持的Android项目。 Android Studio uses Gradle.
Android Studio使用Gradle。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.