Releases: sbt/sbt-avro
v4.0.0
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
v3.5.1
What's Changed
This release contains a bugfix preventing cross-building: unpacking avro source was not executed for subsequent scala versions due to caching issue.
Bugfixes
- Scope dependency unpacking with scala version by @RustedBones in #202
Build improvements
- Introduce scalafmt by @RustedBones in #203
Dependency updates
- Update versions after 3.5.0 release by @RustedBones in #193
- Update sbt to 1.10.2 by @scala-steward in #197
- Update scala-library to 2.12.20 by @scala-steward in #195
- Update sbt-ci-release to 1.6.1 by @scala-steward in #194
- Update sbt-ci-release to 1.8.0 by @scala-steward in #199
- Update specs2-core to 4.20.9 by @scala-steward in #201
Full Changelog: v3.5.0...v3.5.1
v3.5.0
What's Changed
This version now supports avro 1.12.
Minor breaking changes had to be made to the DefaultSchemaParserBuilder
.
Introduction of a new NameValidatorSchemaParserBuilder
supporting newly introduced NameValidator
.
Dependency updates
- Update scala-library to 2.12.19 by @scala-steward in #183
- Update sbt to 1.10.1 by @scala-steward in #189
- Update sbt-github-actions to 0.24.0 by @scala-steward in #187
- Update avro to 1.12.0 by @scala-steward in #190
- Update sbt-ci-release to 1.6.0 by @scala-steward in #191
- Update specs2-core to 4.20.8 by @scala-steward in #188
Full Changelog: v3.4.4...v3.5.0
v3.4.4
What's Changed
Bugfixes
Documentation
- Fix default value in readme by @RustedBones in #174
- Add new contributor by @RustedBones in #176
Dependency updates
- Update sbt to 1.9.6 by @scala-steward in #162
- Update sbt-github-actions to 0.19.0 by @scala-steward in #169
- Update avro to 1.11.3 by @RustedBones in #166
- Update specs2-core to 4.20.3 by @scala-steward in #171
New Contributors
Full Changelog: v3.4.3...v3.4.4
v3.4.3
Add new avroSpecificRecords
scoped setting list avro generated classes to recompile with current avro version and settings.
What's Changed
- Update sbt-ci-release to 1.5.12 by @scala-steward in #146
- Update sbt-github-actions to 0.15.0 by @scala-steward in #149
- Update scala version to v2.12.18 by @RustedBones in #151
- Update avro-compiler to 1.11.2 by @scala-steward in #153
- Update sbt to 1.9.3 by @scala-steward in #155
- Update specs2-core to 4.20.2 by @scala-steward in #157
- Add avroSpecificRecords setting by @RustedBones in #158
Full Changelog: v3.4.2...v3.4.3
v3.4.2
Give users the possibility to reference the avro compiler version with avroCompilerVersion
What's Changed
- Expose avro compiler version by @RustedBones in #129
Full Changelog: v3.4.1...v3.4.2
v3.4.1
This release changes the default target folders for unpacked schemas and generated sources. This mainly aims to improve IDE compatibility.
What's Changed
- Update sbt-github-actions to 0.14.2 by @scala-steward in #111
- Update specs2-core to 4.16.1 by @scala-steward in #122
- Update scripted sbt to 1.7.1 by @RustedBones in #127
- Use distinct managed sources folders by @RustedBones in #126
Full Changelog: v3.4.0...v3.4.1
v3.4.0
Summary
- Drop sbt support < 1.3.0
- Add avro 1.11.0 compatibility (remove
public_deprecated
visibility) - Add include/exclude filtering possibility when unpacking avro dependencies
What's Changed
- Update sbt-ci-release to 1.5.9 by @scala-steward in #100
- Allow to include/exclude individual schemas from dependencies by @drachenbach in #105
- Update specs2-core to 4.13.0 by @scala-steward in #101
- Update sbt-ci-release to 1.5.10 by @scala-steward in #102
- Update avro-compiler to 1.11.0 by @scala-steward in #103
- Drop support for sbt 1.2.8 by @RustedBones in #107
New Contributors
- @drachenbach made their first contribution in #105
Full Changelog: v3.3.0...v3.4.0
v3.3.0
- Update so scala 2.12.15
- Bump major version to avoid conflict with
com.cavorite:sbt-avro:3.2.0
for managed artifact migration withscala-steward
v3.2.0
Migration
sbt-avro
is now published to maven central and has been release under thesbt
organisation.
- addSbtPlugin("com.cavorite" % "sbt-avro" % "3.1.0")
+ addSbtPlugin("com.github.sbt" % "sbt-avro" % "3.2.0")
New Feature
avroOptionalGetters
: Set to true to generate getters that return Optional for nullable fields.