diff --git a/docs/images/get-started/jvm-new-project.png b/docs/images/get-started/jvm-new-project.png index 050f3cac1ab..9be62827d17 100644 Binary files a/docs/images/get-started/jvm-new-project.png and b/docs/images/get-started/jvm-new-project.png differ diff --git a/docs/images/gradle/jvm-new-gradle-project-advanced.png b/docs/images/gradle/jvm-new-gradle-project-advanced.png new file mode 100644 index 00000000000..4e3c25579c3 Binary files /dev/null and b/docs/images/gradle/jvm-new-gradle-project-advanced.png differ diff --git a/docs/images/gradle/jvm-new-gradle-project.png b/docs/images/gradle/jvm-new-gradle-project.png index 2edcde60f8b..db7ef0471a1 100644 Binary files a/docs/images/gradle/jvm-new-gradle-project.png and b/docs/images/gradle/jvm-new-gradle-project.png differ diff --git a/docs/topics/gradle/get-started-with-jvm-gradle-project.md b/docs/topics/gradle/get-started-with-jvm-gradle-project.md index c581d37e400..554c46a62c4 100644 --- a/docs/topics/gradle/get-started-with-jvm-gradle-project.md +++ b/docs/topics/gradle/get-started-with-jvm-gradle-project.md @@ -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: diff --git a/docs/topics/gradle/gradle-configure-project.md b/docs/topics/gradle/gradle-configure-project.md index da00eb1f108..d02067ae9a0 100644 --- a/docs/topics/gradle/gradle-configure-project.md +++ b/docs/topics/gradle/gradle-configure-project.md @@ -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%") } ``` @@ -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%' } ``` diff --git a/docs/topics/jvm/jvm-get-started.md b/docs/topics/jvm/jvm-get-started.md index 4e85802baee..e1e68661a50 100644 --- a/docs/topics/jvm/jvm-get-started.md +++ b/docs/topics/jvm/jvm-get-started.md @@ -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 diff --git a/docs/v.list b/docs/v.list index c678f074c69..dca59c26a6c 100644 --- a/docs/v.list +++ b/docs/v.list @@ -52,4 +52,6 @@ + +