Choose Gradle: Additional Libraries and Frameworks:
Java
Kotlin/JVM
Choose name and folder, option Artifact Coordinates and specify group.id click [Done]
wait for Gradle Project to initialize
I’ve seen it take as long as 90 seconds
Build window top line will show
project-name: finished At 12/14/2021 7:23 PM 1 min, 30 sec, 496 ms
Select src/main/kotlin folder
right click, New/Package com.ceb.helloworld
Kotlin Docs says you don’t have to have put .kt files in paths that represent the package, that the package statement will suffice, but for this to work you do need create the package folders same as Java.
right click, New Kotlin Class/File, Kotlin File
package com.ceb.helloworld
fun main() { println("Hello.") }
menu File/Project Structure…
Artifacts, click +, Jar/From modules with dependencies
Peter wants to create an executable Jar that will run a simple program that reads and modifies some files and creates a log file.
He like to start writing in Kotlin.