Dron Bhattacharya
02/13/2023, 6:07 PMLandry Norris
02/13/2023, 6:10 PMDron Bhattacharya
02/13/2023, 6:19 PMLandry Norris
02/13/2023, 6:19 PMDron Bhattacharya
02/13/2023, 6:20 PMLandry Norris
02/13/2023, 6:20 PMephemient
02/13/2023, 6:20 PMAdam S
02/13/2023, 6:21 PMLandry Norris
02/13/2023, 6:21 PMDron Bhattacharya
02/13/2023, 6:22 PMephemient
02/13/2023, 6:23 PMLandry Norris
02/13/2023, 6:23 PMLandry Norris
02/13/2023, 6:25 PMgradle tasks
and it wll print out a list of tasks the project can run.Adam S
02/13/2023, 6:26 PMDron Bhattacharya
02/13/2023, 6:31 PMLandry Norris
02/13/2023, 6:32 PMDron Bhattacharya
02/13/2023, 6:33 PMLandry Norris
02/13/2023, 6:34 PMplugins {
kotlin("jvm") version "1.8.10"
application
}
to the build.gradle.kts and create main.kt in src. Copy
fun main() {
println("What's your name?")
val name = readln()
println("Hello, $name!")
}
into main.kt and you should have the most basic project.Landry Norris
02/13/2023, 6:35 PMgradle tasks
and see what the output says. If you don’t then copy the gradle folder and gradlew (gradlew.bat for Windows) from another project.Dron Bhattacharya
02/13/2023, 6:36 PMLandry Norris
02/13/2023, 6:37 PMgradle build
(or gradlew if using the wrapper) should work.Adam S
02/13/2023, 6:39 PMgradle init
in an empty dir it will guide you through setting up a basic project - you can select ‘Kotlin application’Adam S
02/13/2023, 6:39 PMDron Bhattacharya
02/13/2023, 6:42 PMLandry Norris
02/13/2023, 6:43 PMLandry Norris
02/13/2023, 6:43 PMephemient
02/13/2023, 6:44 PMAdam S
02/13/2023, 6:44 PMKirill Grouchnikov
02/13/2023, 6:48 PMKirill Grouchnikov
02/13/2023, 6:53 PMDron Bhattacharya
02/13/2023, 6:55 PMLandry Norris
02/13/2023, 6:55 PMLandry Norris
02/13/2023, 6:57 PMDron Bhattacharya
02/13/2023, 7:29 PM