This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Description
When configuring a copy task in buildSrc, setting the duplicatesStrategy property causes an error:

the same error occurs when compiling from the command line.:
e: C:\Users\ingo\temp\kotlinGradlDslBug\buildSrc\src\main\kotlin\Demo.kt: (12, 5):
Val cannot be reassigned
> Task :buildSrc:compileKotlin FAILED
Using the explicit setter works.
This used to work before 1.0-RC1.
A sample project to reproduce this bug is attached:
kotlinGradlDslBug.zip