You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
Ability to configure default gradle wrapper via kotlin DSL
Current Behavior
task<Wrapper>("wrapper") { /**...*/ }
above code spawns warning:
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.'.
wrapper { }
above doesn't compile with following errors:
Line 45: wrapper {
^ Expression 'wrapper' cannot be invoked as a function. The function 'invoke()' is not found
Line 45: wrapper {
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val PluginDependenciesSpec.wrapper: PluginDependencySpec defined in org.gradle.kotlin.dsl
wrapper task with different name (e.g. gradleWrapper) doesn't work well with IntelliJ IDEA. IDEA doesn't not use it to configure the wrapper
Your Environment
Gradle 4.8.1
The text was updated successfully, but these errors were encountered:
Gradle Wrapper Configuration
Expected Behavior
Ability to configure default gradle wrapper via kotlin DSL
Current Behavior
above code spawns warning:
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.'.
above doesn't compile with following errors:
Line 45: wrapper {
^ Expression 'wrapper' cannot be invoked as a function. The function 'invoke()' is not found
Line 45: wrapper {
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val PluginDependenciesSpec.wrapper: PluginDependencySpec defined in org.gradle.kotlin.dsl
Your Environment
Gradle 4.8.1
The text was updated successfully, but these errors were encountered: