No build.gradle nor pom.xml
已回答
Often, when trying to add something to IntelliJ, I'm told to simply add something to my build.gradle or pom.xml file. I don't have either. I've never used Maven nor Gradle (but I'm a beast with Makefiles).
My current issue is with kotlinx-cli.
Am I supposed to create these files, or what?
请先登录再写评论。
Hi Jim, build.gradle is for Gradle-managed projects, and pom.xml is for Maven-managed projects.
You can create a new Gradle-managed project by following the steps in https://www.jetbrains.com/help/idea/getting-started-with-gradle.html#create_project, and for maven, please refer to https://www.jetbrains.com/guide/java/tutorials/working-with-maven/creating-a-project/ .
If you want to turn your existing project into gradle-managed or maven-managed, please follow these instructions:
Maven
pom.xmlin the project root:pom.xml.pom.xml(at minimumgroupId,artifactId,version, and packaging if needed).Gradle
build.gradle(orbuild.gradle.ktsfor Kotlin DSL).