Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add release notes for task configuration promotion
  • Loading branch information
big-guy committed Dec 4, 2018
commit 30a7de2014fd817936d8106352ac57b9c990c436
25 changes: 25 additions & 0 deletions subprojects/docs/src/docs/release/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@ The following are the features that have been promoted in this Gradle release.
### Example promoted
-->

### Configuration avoidance for Tasks

[In a recent blog post](https://blog.gradle.org/preview-avoiding-task-configuration-time), we described a new API for creating and configuration `Task` instances that allow Gradle to avoid creating and configuring tasks that do not need to be executed.

In this release, we now [recommend that you use this new API when working with tasks](userguide/task_configuration_avoidance.html).

By default, the Kotlin DSL [uses the new APIs](current/userguide/kotlin_dsl.html#type-safe-accessors).

"Old style" task declarations in the Groovy DSL continue to be eager and force creation/configuration of any tasks created this way.
```
// "Old style" task declaration uses Task create API. This always creates a task.
task myTask(type: MyTask) {
// This is always called
}
```

In Groovy, to use the new API:
```
tasks.register("myTask", MyTask) {

}
```

The existing API is not deprecated, but as builds transition to the new API, we will consider deprecating the API in a future release.

## Fixed issues

### Inherited configuration-wide dependency excludes are now published
Expand Down