Skip to content

Commit

Permalink
Fix Kotlin code
Browse files Browse the repository at this point in the history
  • Loading branch information
melix committed Jan 23, 2023
1 parent ad477f7 commit af8d9ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ gitRepositories {
gitRepositories {
include("my-project") {
// ...
codeReady { event ->
println("Project cloned in ${event.checkoutDirectory}")
codeReady {
println("Project cloned in ${checkoutDirectory}")
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions samples/basic/kotlin/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ gitRepositories {
if (gradle.startParameter.projectProperties.containsKey("checkoutDir")) {
checkoutDirectory.set(file(gradle.startParameter.projectProperties.get("checkoutDir")!!))
}
codeReady { event ->
println "Code ready"
println "Checkout directory: ${event.checkoutDirectory}"
codeReady {
println("Code ready")
println("Checkout directory: ${checkoutDirectory}")
}
}
}

0 comments on commit af8d9ab

Please sign in to comment.