byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

Gradle plugin version 1.12.11 doesn't seem to work with Gradle 7.3

Open feliperuiz opened this issue 2 years ago • 2 comments

When upgrading from 1.12.10 to 1.12.11, I was faced with this error from Gradle:

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':foo:byteBuddy' (type 'ByteBuddyTask').
  - In plugin 'net.bytebuddy.byte-buddy-gradle-plugin' type 'net.bytebuddy.build.gradle.ByteBuddyTask' property 'discoverySet' has @Input annotation used on property of type 'FileCollection'.
    
    Reason: A property of type 'FileCollection' annotated with @Input cannot determine how to interpret the file.
    
    Possible solutions:
      1. Annotate with @InputFile for regular files.
      2. Annotate with @InputDirectory for directories.
      3. If you want to track the path, return File.absolutePath as a String and keep @Input.

As far as I could tell, it refers to this bit of code, though I don't know enough about the project and/or Gradle's plugin architecture to comment on the possible solutions suggested by Gradle itself.

Are there any suggested workarounds?

feliperuiz avatar Jun 23 '22 11:06 feliperuiz

Indeed, could you build BB from master and see if the annotation change fixed the issue?

raphw avatar Jun 23 '22 13:06 raphw

Reporting back after trying it out with 1.12.12-SNAPSHOT, it worked! At least I didn't get the error message.

feliperuiz avatar Jun 24 '22 16:06 feliperuiz