raphw / byte-buddy

Runtime code generation for the Java virtual machine.
https://bytebuddy.net
Apache License 2.0
6.29k stars 807 forks source link

EntryPoint property breaks gradle build #1699

Closed breedx-splk closed 3 months ago

breedx-splk commented 3 months ago

Hi. It looks like this commit that added the ability to override the entryPoint property has broken our gradle build since 1.14.19.

You can see our build automation log output failing here, but I'll quote the TL;DR here:

* What went wrong:
A problem was found with the configuration of task ':instrumentation:httpurlconnection:testing:debugBytebuddyTransform' (type 'ByteBuddyLocalClassesEnhancerTask').
  - In plugin 'net.bytebuddy.build.gradle.android.ByteBuddyAndroidPlugin' type 'net.bytebuddy.build.gradle.android.ByteBuddyLocalClassesEnhancerTask' property 'entryPoint' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'entryPoint'.
      2. Mark property 'entryPoint' as optional.

    For more information, please refer to https://docs.gradle.org/8.10/userguide/validation_problems.html#value_not_set in the Gradle documentation.

Because the implementation uses getOrElse(), marking it optional seems like the way to go.

raphw commented 3 months ago

Indeed, missed that. I am working on introducing several properties similar to the regular plugin. I will release this fix together with that change.