Plugin development - how to map extension properties to task properties in Gradle 5?

Official documentation explains that extension properties should be mapped to task properties via the Property class, while that class is annotated with @Incubating.

Should this method be used then or not?