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

duplicatesStrategy property of Copy task cannot be set in buildSrc since 1.0-RC1 #1070

@ingokegel

Description

@ingokegel

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

2018-08-27_17-07-27

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions