ianbrandt
06/09/2018, 8:20 AMwrapper
task from the Kotlin DSL than this example (https://github.com/gradle/kotlin-dsl/issues/438#issuecomment-318749893)?:
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType
task<Wrapper>("wrapper") {
gradleVersion = "4.8"
distributionType = DistributionType.ALL
}
It works, but results in a deprecation warning:
$ ./gradlew build --warning-mode=all
> Configure project :
Creating a custom task named 'wrapper' has been deprecated and is scheduled to be removed in Gradle 5.0. You can configure the existing task using the 'wrapper { }' syntax or create your custom task under a different name.'.
ianbrandt
06/09/2018, 3:57 PMtasks {
"wrapper"(Wrapper::class) {
gradleVersion = "4.8"
distributionType = DistributionType.ALL
}
}
Is that the current idiomatic solution?ianbrandt
06/09/2018, 5:27 PMmkobit
06/10/2018, 4:11 PM