From 48e7a6c2c014a4c036a4f9b32ecb0eb87cf63b4a Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 4 Nov 2020 01:03:24 +0300 Subject: [PATCH] Getting started tutorial update. --- tutorials/Getting_Started/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tutorials/Getting_Started/README.md b/tutorials/Getting_Started/README.md index 4340825f10..73acb6ea81 100644 --- a/tutorials/Getting_Started/README.md +++ b/tutorials/Getting_Started/README.md @@ -16,7 +16,7 @@ The following software has to be preinstalled: ## Creating a new project -*TBD: new project wizard* +Kotlin plugin has Compose new project wizard, but it is possible to create project manually. The recommended way of building Compose for Desktop projects is by using Gradle. JetBrains provides a simple way of building Compose for Desktop projects @@ -46,8 +46,7 @@ import org.jetbrains.compose.compose plugins { kotlin("jvm") version "1.4.0" - id("org.jetbrains.compose") version "0.1.0-m1-build57" - application + id("org.jetbrains.compose") version "0.1.0-m1-build62" } repositories { @@ -59,8 +58,10 @@ dependencies { implementation(compose.desktop.currentOs) } -application { - mainClassName = "MainKt" +compose.desktop { + application { + mainClass = "MainKt" + } } ``` Then create file `src/main/kotlin/main.kt` and put there: @@ -105,7 +106,6 @@ Open `build.gradle.kts` as a project in IntelliJ IDEA. ![New project](screen1.png) - After you download the Compose for Desktop dependencies from the Maven repositories your new project is ready to go. Open the Gradle toolbar on the right, and select `sample/Tasks/applications/run`. The first run may take some time, but afterwards following dialog will be shown: