When reviewing the documentation on the Managing Dependencies
using the (Spring Boot) Gradle Plugin, and specifically in section, "Using Spring Boot's Dependency Management in Isolation", I wanted to verify that the (2nd) Kotlin example in this section was correct:
apply(plugin = "io.spring.dependency-management")
the<DependencyManagementExtension>().apply {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
The apply(..)
invocation leads with the word "the
".
Should this be "this
" instead?
For example:
this<DependencyManagementExtension>().apply {
imports {
// ...
I am just wondering what "the" refers to?
Comment From: wilkinsona
No, the
is correct. It’s a method in the Gradle Kotlin DSL for accessing extensions in a type-safe way.
Comment From: jxblum
Thank you for clarifying, @wilkinsona.