简体   繁体   English

如何知道Intellij使用哪个构建工具?

[英]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.

相关问题 构建项目时如何知道Maven使用的是哪个java版本 - How to know which java version the Maven is using when build the project 我们如何知道当前正在使用 VisualVM 或任何其他工具在我的 Java 程序中执行哪种类型的 GC(年轻/完整)? - How do we know which type of GC(young/full) is currently being executed in my Java Program using VisualVM or any other tool? 如何使用键盘在 IntelliJ IDEA 中调整工具 window 的大小? - How can I resize a tool window in IntelliJ IDEA using the keyboard? 如何在 Intellij Idea 中使用 maven 构建战争 - How to build war using maven in Intellij Idea 如何知道用户正在使用的应用程序名称? - How to know the application name which the user was using? IntelliJ Idea:如何(默认情况下)从编译中排除已损坏且不属于 maven 构建的模块? - IntelliJ Idea: How to (by default) exclude a module from compilation which is broken and which is not part of the maven build? 我无法从IntelliJ的“构建工具”中找到Maven - I can't find maven from “Build Tool” in IntelliJ Gradle 构建后,Intellij Idea 未在消息工具窗口中显示错误 - Intellij Idea not showing errors in Message Tool Window after Gradle build 使用getItemViewType() - 我如何知道哪个布局为0,哪个布局为1? - Using getItemViewType() - How do I know which layout is 0 and which is 1? 如何使用Gradle Build Tool压缩受密码保护的文件夹 - How To Zip Folder With Password Protected Using Gradle Build Tool
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM