-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package, publish and unpack avro schema artifact #18
Conversation
Extract avro schema from any desired dependency
Adding the |
src/main/scala/sbtavro/SbtAvro.scala
Outdated
inStyle = FilesInfo.lastModified, | ||
outStyle = FilesInfo.exists | ||
) { deps => | ||
val moduleTarget = extractTarget / module.organization / module.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a trade-off: Unpack on separate directories to avoid file name conflict between deps and fail avro generation in case avroUseNamespace
is set. Or unpack all schemas in extractTarget
but risk conflict
Sorry I had to merge #23 first for another fix, which includes the |
@nevillelyh Can this have another look before merge ? |
* Package, publish and unpack avro schema artifact * Update README * Fix caching and use separate target directory * Introduce avroDependencyIncludeFilter setting Extract avro schema from any desired dependency * Use target setting * Unpack avro sources dependencies in sourceManaged folder Co-authored-by: Neville Li <neville@spotify.com>
Add the possibility to package avro sources, publish and declare it as dependency.
To be worked on: In the future, it would be nice to also the support of artifacts withoutavro
classifier as dependencies for the avroGenerate task