Hello! Badly understand how to collect projects. I know that doing this Maven, Gradle, Ant.

But you need to understand everything or choose one tool and understand it?

Also, if I create for example a MAven project in IDEA, will I get a regular Java project with Maven support or is it some kind of special project?

And what if I have already written some project how to connect the Picker to it? If I want to develop in the direction of Android, which builder should I teach?

I read a bunch of articles about them, all philosophical, there are no specific guidelines for what to do and how to work with them.

  • 3
    “If I want to develop in the direction of Android, which builder should I learn?” - Gradle . - post_zeew
  • Create a pom.xml file in the project root and add the minimum configuration to it. maven.apache.org/pom.html#Quick_Overview `` `<groupId> ... </ groupId> <artifactId> ... </ artifactId> <version> ... </ version> <packaging> ... </ packaging> `` `IDEA should notice it and suggest adding a maven module to the project. The default code should be in /src/main/java/{groupId.artifactId} - Anatoly Samokisha

1 answer 1

Maven is considered a conservative choice - in any case, you will not lose if you start with it. Besides, it's a good idea to have an idea of ​​how Maven works, before starting to get acquainted with Gradle (how to master the piano first, before learning to play the guitar).

All you need to know about Maven:
- maven goals and phases
- mvn archetype: generate
- pom.xml and dependency management
- mvn clean install
- ...
- PROFIT

About Gradle, all you need to know is that the build scripts are fully customizable and are written in groovy.

  • You understand what the problem is, for example, I create a Maven project and create a regular pure Java project + mavena files and the most important thing is that I can create java classes. But if I create a Gradle project, then there is nothing there but a couple of Gradle files and I cannot create Java classes in the created project. And I cannot understand why this is happening and what I am doing wrong. Also, I do not understand how to connect collectors if the project has already been created without them? - Alex King
  • Or how to create a Spring project and a Maven project at the same time? - Alex King
  • @AlexKing I'll start with the last question: as far as I know, you can either choose a Spring project from among the Maven artifacts, or create a generic application and simply add Spring dependency to pom.xml. I didn’t particularly feel gradle, I’ll have to play at leisure. The reason I have not done this yet is to try to avoid unnecessary complexity / customization. After all, the main thing is to get things done, and not to create a thing in yourself from the build tool. Related : twitter.com/id_aa_carmack/status/774024499532472322 twitter.com/ID_AA_Carmack/status/656956280888672256 - wintermute