This is an excerpt from Manning's book Gradle in Action - corrected 9052019. Login to get full access to this book.
In the listing, you’re not using the DefaultTask’s properties to declare its inputs and outputs. Instead, you use annotations from the package org.gradle.api.tasks.