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

Building Kotlin Applications Sample is not up to date #28872

Open
Herudaio opened this issue Apr 18, 2024 · 1 comment
Open

Building Kotlin Applications Sample is not up to date #28872

Herudaio opened this issue Apr 18, 2024 · 1 comment
Labels
a:documentation Documentation content in:tutorial

Comments

@Herudaio
Copy link

Issue type

Missing information

Problem description

In section:
https://docs.gradle.org/current/samples/sample_building_kotlin_applications.html#run_the_init_task

The console output shown (basic Groovy project with Groovy DSL) does not match the newest Gradle version and don't match the code shown later on the page (Kotlin Application with Kotlin DSL)

Context (optional)

I wanted to go through the tutorial and had trouble figuring out whether what I'm doing is correct or not.

Page with the problem

https://docs.gradle.org/current/samples/sample_building_kotlin_applications.html

@Herudaio Herudaio added a:documentation Documentation content to-triage labels Apr 18, 2024
@ov7a
Copy link
Member

ov7a commented Apr 19, 2024

This is a valid documentation issue.

We welcome documentation contributions. See our contributing documentation guide for more information.


The current doc is outdated. It shows:

$ gradle init

Select type of project to generate:
  1: basic
  2: application
  3: library
  4: Gradle plugin
Enter selection (default: basic) [1..4] 1

Select implementation language:
  1: C++
  2: Groovy
  3: Java
  4: Kotlin
  5: Scala
  6: Swift
Enter selection (default: Java) [1..6] 2

Select build script DSL:
  1: Groovy
  2: Kotlin
Enter selection (default: Groovy) [1..2] 1

Project name (default: demo):
Source package (default: demo):


BUILD SUCCESSFUL
2 actionable tasks: 2 executed

The actual output:

$ gradle init

Select type of build to generate:
  1: Application
  2: Library
  3: Gradle plugin
  4: Basic (build structure only)
Enter selection (default: Application) [1..4] 1

Select implementation language:
  1: Java
  2: Kotlin
  3: Groovy
  4: Scala
  5: C++
  6: Swift
Enter selection (default: Java) [1..6] 2

Enter target Java version (min: 7, default: 21): 

Project name (default: test): 

Select application structure:
  1: Single application project
  2: Application and library project
Enter selection (default: Single application project) [1..2] 

Select build script DSL:
  1: Kotlin
  2: Groovy
Enter selection (default: Kotlin) [1..2] 

Generate build using new APIs and behavior (some features may change in the next minor release)? (default: no) [yes, no] 


> Task :init
To learn more about Gradle by exploring our Samples at https://docs.gradle.org/8.7/samples/sample_building_kotlin_applications.html

BUILD SUCCESSFUL in 3m 7s
1 actionable task: 1 executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:documentation Documentation content in:tutorial
Projects
None yet
Development

No branches or pull requests

2 participants