Now that we have learned about the benefits that the Kotlin language offers, let's see how to configure Kotlin in a project. In this section, we will look at how to create a simple Kotlin project and a Maven project using IntelliJ IDEA.
Configuring Kotlin in the project
Creating a simple Kotlin project
It's easy to create a Kotlin-JVM project using IntelliJ IDEA by observing the following steps:
- Click on File | New | Project.
- In the New Project window, select Kotlin/JVM, and choose Next. This is shown in the following screenshot:
- In the next wizard, specify the Project name and the Project location. Choose JDK and Kotlin runtime and click on Finish.
- In the modules settings, click on Facets and add Kotlin to...