Commit 0a06ab6
Yann Rouillard
fix: improve avro library detection
So far we checked for the presence of the library in the target schema
class file but this library could be loaded indirectly and not
explicitely listed.
As a fallback, we now:
- look for the library string without the import keyword, to allow
to specify it using the schemas static annotation if needed
(for instance '@Schema(library="com.sksamuel.avro4s")')
- search for the library in the build.sbt as well.1 parent a9a7941 commit 0a06ab6
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
67 | | - | |
| 82 | + | |
68 | 83 | | |
69 | | - | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
0 commit comments