What's Changed
This is a new major release of the sbt-avro
plugin, cross published for sbt v1 and v2.
It introduces new configurations:
avro-compiler
: declares the avro compiler classpathavro
: artifacts containing avro specifications to compileavro-test
: same asavro
for the test scope
The plugin now requires explicit enabling with enablePlugins(SbtAvro)
since it alters the project libraryDependencies
setting.
Select the desired avro version to use with avroVersion
setting.
New features
- Modulable avro plugin by @RustedBones in #196
- Cross build to sbt v2 by @RustedBones in #206
- Use avro scope for external avro sources by @RustedBones in #211
- Improve error logging by @RustedBones in #213
- Sateful schema compiler by @RustedBones in #216
- Allow dependency on project with avro scope by @RustedBones in #220
- Use distinct avro-compiler and avro-test configuration by @RustedBones in #224
- Relax avro source include filter by @RustedBones in #225
Bugfixes
- Fix inverted settings by @RustedBones in #207
- Drop source type attribute by @RustedBones in #212
- Avoid unpack conflict by @RustedBones in #217
- Use FeedbackProvidedException instead of AlreadyHandledException by @RustedBones in #226
- Use plugin ClassLoader by @RustedBones in #227
- Set avro class-loader on the current thread by @RustedBones in #229
- Only handle RuntimeExceptions by @RustedBones in #230
- Don't close URLClassLoader by @RustedBones in #233
Build improvements
- Target java 8 by @RustedBones in #215
- Fix sbt cross-build settings by @RustedBones in #232
Test improvements
- Add check for nested record generated file by @RustedBones in #223
- Fix glob warning in tests by @RustedBones in #228
Dependency updates
- Update sbt-buildinfo to 0.13.1 by @scala-steward in #214
- Update sbt, scripted-plugin to 1.10.6 by @scala-steward in #218
- Update sbt-ci-release to 1.9.2 by @scala-steward in #219
- Update sbt to 1.10.7 and 2.0.0-M3 by @RustedBones in #222
Full Changelog: v3.5.1...v4.0.0