siddharthapd commented on PR #3614:
URL: https://github.com/apache/avro/pull/3614#issuecomment-4355371520
Hey @ebAtUelzener
I gave it a shot to use 0.1.2 version. For plain simple AVSC, it works but
when it comes to adding custom conversions and adding logical factory - it
fails.
`build.gradle`
```groovy
avro {
sourceDirectory = "src/main/avro"
customConversions = ["com.test.custom.AbcdConversion"]
customLogicalTypeFactories = ["com.test.custom.AbcdLogicalTypeFactory"]
}
```
ClassNotFoundException
https://github.com/frevib/avro/blob/AVRO-4223-gradle-plugin/lang/java/gradle-plugin/src/main/kotlin/eu/eventloopsoftware/avro/gradle/plugin/tasks/AbstractCompileTask.kt#L94C9-L94C113
`
compiler.addCustomConversion(Thread.currentThread().getContextClassLoader().loadClass(customConversion))`
```
Caused by: java.io.IOException: java.lang.ClassNotFoundException:
com.test.custom.AbcdConversion
at
eu.eventloopsoftware.avro.gradle.plugin.tasks.AbstractCompileTask.doCompile(AbstractCompileTask.kt:97)
at
eu.eventloopsoftware.avro.gradle.plugin.tasks.CompileAvroSchemaTask.compileSchemas(CompileAvroSchemaTask.kt:68)
... 131 more
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]