Skip to content

Commit 0e3907f

Browse files
committed
bumped version for release
1 parent 946ea39 commit 0e3907f

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# avrohugger
22
Schema-to-case-class code generation for working with Avro in Scala.
33

4-
* `avrohugger-core`: Generate source-code dynamically at runtime for evaluation at a later step
4+
* `avrohugger-core`: Generate source code dynamically at runtime for evaluation at a later step
55
* `avrohugger-tools`: Generate source code at the command line with the avrohugger-tools jar.
6+
* `[sbt-avrohugger](https://github.com/julianpeeters/sbt-avrohugger)`: Generate source code at compile time with a sbt plugin.
67

78
Generates Scala case classes (for use with [Scalavro](https://github.com/GenslerAppsPod/scalavro) and [Salat-Avro](https://github.com/julianpeeters/salat-avro)), or case classes that implement `SpecificRecordBase` (for use with the Avro Specific API - Scalding, Spark, Avro, etc.).
89

@@ -48,7 +49,7 @@ Then get a `Generator` or `specific.SpecificGenerator` and use `fromSchema` or `
4849
####`avrohugger-tools`
4950

5051

51-
Download the avrohugger-tools jar for Scala [2.10](https://search.maven.org/remotecontent?filepath=com/julianpeeters/avrohugger-tools_2.11/0.0.1/avrohugger-tools_2.10-0.0.1-assembly.jar) or Scala [2.11](https://search.maven.org/remotecontent?filepath=com/julianpeeters/avrohugger-tools_2.11/0.0.1/avrohugger-tools_2.11-0.0.1-assembly.jar) and use it like the avro-tools jar `Usage: [-string] (schema|protocol|datafile) input... outputdir`:
52+
Download the avrohugger-tools jar for Scala [2.10](https://search.maven.org/remotecontent?filepath=com/julianpeeters/avrohugger-tools_2.10/0.0.2/avrohugger-tools_2.10-0.0.2-assembly.jar) or Scala [2.11](https://search.maven.org/remotecontent?filepath=com/julianpeeters/avrohugger-tools_2.11/0.0.2/avrohugger-tools_2.11-0.0.2-assembly.jar)(20MB!) and use it like the avro-tools jar `Usage: [-string] (schema|protocol|datafile) input... outputdir`:
5253

5354

5455
// 'generate' generates Scala case class definitions
@@ -59,12 +60,17 @@ Download the avrohugger-tools jar for Scala [2.10](https://search.maven.org/remo
5960
java -jar /path/to/avrohugger-tools_2.11-0.0.2-assembly.jar generate-specific schema user.avsc .
6061

6162

63+
####`sbt-avrohugger`
64+
65+
Also available as an [sbt plugin](https://github.com/julianpeeters/sbt-avrohugger) that adds a `generate` or `generate-specific` task to `compile` (an alternative to [macros](https://github.com/julianpeeters/avro-scala-macro-annotations)).
66+
67+
6268
## Future
69+
6370
* Support more avro types: enum, fixed, bytes, map.
6471

6572

6673
## Testing
67-
`> scripted`
6874

6975
The `scripted` task runs all tests.
7076

project/Build.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import sbtassembly.AssemblyPlugin.autoImport._
66
object BuildSettings {
77
val buildSettings = Defaults.defaultSettings ++ scriptedSettings ++ Seq(
88
organization := "com.julianpeeters",
9-
version := "0.0.2-SNAPSHOT",
9+
version := "0.0.2",
1010
scalacOptions ++= Seq(),
11-
scalaVersion := "2.10.4",
11+
scalaVersion := "2.11.5",
1212
crossScalaVersions := Seq("2.10.4", "2.11.5"),
1313
libraryDependencies += "org.apache.avro" % "avro" % "1.7.7",
1414
libraryDependencies += "org.specs2" %% "specs2" % "2.4" % "test",

0 commit comments

Comments
 (0)