dorongold / gradle-task-tree

Gradle plugin that adds a 'taskTree' task that prints task dependency tree
Apache License 2.0
857 stars 56 forks source link

Error with gradle 5.3 about decorator #32

Closed jschewebbn closed 5 years ago

jschewebbn commented 5 years ago

I have the task tree plugin referenced as

plugins {
    id 'com.dorongold.task-tree' version '1.3'
}

When I try and execute any task using gradle 5.3 I get this error.

An exception occurred applying plugin request [id: 'com.dorongold.task-tree', version: '1.3']
> Failed to apply plugin [id 'com.dorongold.task-tree']
   > Could not create task ':taskTree'.
      > Could not create task of type 'TaskTreeTask'.
         > Could not generate a decorated class for class com.dorongold.gradle.tasktree.TaskTreeTask.
            > org/gradle/execution/taskgraph/TaskInfo
>./gradlew --version

------------------------------------------------------------
Gradle 5.3
------------------------------------------------------------

Build time:   2019-03-20 11:03:29 UTC
Revision:     f5c64796748a98efdbf6f99f44b6afe08492c2a0

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          1.8.0_191 (Oracle Corporation 25.191-b12)
OS:           Linux 4.15.0-46-generic amd64
ushuaia commented 5 years ago

I had the same problem.

chaobifadacai commented 5 years ago

I had the same problem too.

ConradJohnston commented 5 years ago

I confirm this behaviour with version 1.3, but find that it works in 1.3.1.

dorongold commented 5 years ago

I confirm this behaviour with version 1.3, but find that it works in 1.3.1.

Yup, this is solved in the latest plugin versions. The main purpose of version 1.3.1 was to solve this bug 😃 .