Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI changes for KT-63421 #3925

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/images/get-started/jvm-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/gradle/jvm-new-gradle-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion docs/topics/gradle/get-started-with-jvm-gradle-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,24 @@ To get started, first download and install the latest version of [IntelliJ IDEA]

7. From the **Gradle DSL** list, select **Kotlin**.
8. Select the **Add sample code** checkbox to create a file with a sample `"Hello World!"` application.
9. Click **Create**.

> You can also enable the **Generate code with onboarding tips** option to add some additional useful comments to your
> sample code.
>
{type="tip"}

10. Click **Create**.

You have successfully created a project with Gradle.

#### Specify a Gradle version for your project {initial-collapse-state="collapsed"}

You can explicitly specify a Gradle version for your project under the **Advanced Settings** section, either by using the Gradle Wrapper or a local installation of Gradle:
* **Gradle Wrapper:** From the **Gradle distribution** list, select **Wrapper**. Deselect the **Auto-select** checkbox, and from the **Gradle version** list, select your Gradle version.
* **Local installation:** From the **Gradle distribution** list, select **Local installation**. For **Gradle location**, specify the path of your local Gradle version.

![Advanced settings](jvm-new-gradle-project-advanced.png){width=700}

## Explore the build script

Open the `build.gradle.kts` file. This is the Gradle Kotlin build script, which contains Kotlin-related artifacts and other parts required for the application:
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/gradle/gradle-configure-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ This type of plugin manages which repositories to download a toolchain from. As

```kotlin
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.5.0")
id("org.gradle.toolchains.foojay-resolver-convention") version("%foojayResolver%")
}
```

Expand All @@ -354,7 +354,7 @@ plugins {

```groovy
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '%foojayResolver%'
}
```

Expand Down
6 changes: 6 additions & 0 deletions docs/topics/jvm/jvm-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ To get started, first download and install the latest version of [IntelliJ IDEA]
* If you don't have the necessary JDK on your computer, select **Download JDK**.

7. Enable the **Add sample code** option to create a file with a sample `"Hello World!"` application.

> You can also enable the **Generate code with onboarding tips** option to add some additional useful comments to your
> sample code.
>
{type="tip"}

8. Click **Create**.

> If you chose the Gradle build system, you have in your project a build script file: `build.gradle(.kts)`. It includes
Expand Down
2 changes: 2 additions & 0 deletions docs/v.list
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@

<var name="dateTimeVersion" value="0.4.0" type="string"/>

<var name="foojayResolver" value="0.5.0" type="string"/>

</vars>