After upgrading to gradle 7.4{0,1,2} we get this old error.
Works as expected on 7.3.3
No other change was made as part of the upgrade.
g.zip (3.0 KB)
Attached log file
Thanks
Boaz
After upgrading to gradle 7.4{0,1,2} we get this old error.
Works as expected on 7.3.3
No other change was made as part of the upgrade.
g.zip (3.0 KB)
Attached log file
Thanks
Boaz
I cannot tell you WHY it is happening, but I can see WHAT is happening:
d by: java.lang.reflect.UndeclaredThrowableException
at jdk.proxy2/jdk.proxy2.$Proxy77.accept(Unknown Source)
at com.amat.gradle.plugins.protobuf_codegen_plugin.ProtoBUFGenToolImpl.processDir(ProtoBUFGenToolImpl.groovy:60)
at com.amat.gradle.plugins.common_codegen_plugin.CommonCodeGenPlugin$_createTasks_closure1$_closure19$_closure27.doCall(CommonCodeGenPlugin.groovy:198)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.amat.gradle.plugins.common_codegen_plugin.CommonCodeGenPlugin$_createTasks_closure1$_closure19.doCall(CommonCodeGenPlugin.groovy:196)
at com.amat.gradle.plugins.common_codegen_plugin.CommonCodeGenPlugin$_createTasks_closure1$_closure19.call(CommonCodeGenPlugin.groovy)
UndeclaredThrowableException
is what is thrown when a method throws a checked exception that is not on the method signature. This generally happens in the case of proxy-wrapped methods, which is also the case here. I am not sure why this happens with 7.4 and not 7.3.