kazurayam / gradle-aws-plugin

Gradle plugin to manage Amazon Web Services
0 stars 0 forks source link

Cannot add task 'wrapper' as a task with that name already exists. #3

Open kazurayam opened 4 years ago

kazurayam commented 4 years ago

I used Gradle 6.0.1

I got a error

:gradle-aws-plugin [develop]$ gradle test

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/kazuakiurayama/github/gradle-aws-plugin/build.gradle' line: 230

* What went wrong:
A problem occurred evaluating root project 'gradle-aws-plugin'.
> Cannot add task 'wrapper' as a task with that name already exists.
kazurayam commented 4 years ago

The original source of build.gradle had the following lines

// ======== wrapper ========
task wrapper(type: Wrapper) {
    gradleVersion = "4.6"
}

Oh, Gradle ver 4.6. Such old version!

kazurayam commented 4 years ago

Just remove the task wrapper lines would be sufficent.