scalabuff-compiler


License

License

Categories

Categories

Scala Languages Net
GroupId

GroupId

net.sandrogrzicic
ArtifactId

ArtifactId

scalabuff-compiler_2.10
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

scalabuff-compiler
scalabuff-compiler
Project URL

Project URL

https://github.com/SandroGrzicic/ScalaBuff
Project Organization

Project Organization

net.sandrogrzicic
Source Code Management

Source Code Management

https://github.com/SandroGrzicic/ScalaBuff

Download scalabuff-compiler_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/net.sandrogrzicic/scalabuff-compiler_2.10/ -->
<dependency>
    <groupId>net.sandrogrzicic</groupId>
    <artifactId>scalabuff-compiler_2.10</artifactId>
    <version>1.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.sandrogrzicic/scalabuff-compiler_2.10/
implementation 'net.sandrogrzicic:scalabuff-compiler_2.10:1.4.0'
// https://jarcasting.com/artifacts/net.sandrogrzicic/scalabuff-compiler_2.10/
implementation ("net.sandrogrzicic:scalabuff-compiler_2.10:1.4.0")
'net.sandrogrzicic:scalabuff-compiler_2.10:jar:1.4.0'
<dependency org="net.sandrogrzicic" name="scalabuff-compiler_2.10" rev="1.4.0">
  <artifact name="scalabuff-compiler_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sandrogrzicic', module='scalabuff-compiler_2.10', version='1.4.0')
)
libraryDependencies += "net.sandrogrzicic" % "scalabuff-compiler_2.10" % "1.4.0"
[net.sandrogrzicic/scalabuff-compiler_2.10 "1.4.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.4
com.google.protobuf : protobuf-java jar 2.5.0

test (2)

Group / Artifact Type Version
net.sandrogrzicic : scalabuff-runtime_2.10 jar 1.4.0
org.scalatest : scalatest_2.10 jar 2.2.4

Project Modules

There are no modules declared in this project.

ScalaBuff is a Scala Protocol Buffers (protobuf) compiler. It takes .proto files and outputs valid Scala classes that can be used by your code to receive or send protobuf messages.

Both the ScalaBuff generator and the generated Scala classes depend on Google's Java runtime for Protocol Buffers, which is provided with ScalaBuff.

If you want to utilize ScalaBuff to generate your Scala classes from .proto sources, you'll need to either download the source or download the packaged JAR for your Scala version from the Sonatype OSS repository. If you download the sources, you can easily run it from SBT or by generating a fat Jar with sbt assembly:

$ sbt assembly
$ java -jar target/scala-2.11/scalabuff-compiler-assembly-1.4.0.jar --proto_path=INPUT_DIR --scala_out=OUTPUT_DIR

If you just want to use ScalaBuff-generated classes in your SBT-managed project, here's the dependency to add (located on the Sonatype OSS repository): "net.sandrogrzicic" %% "scalabuff-runtime" % "[desired_version]" The latest release is 1.4.0 with support for Scala 2.10 and 2.11.

If you'd like to use SBT with ScalaBuff to auto-generate Scala protobuf classes from .proto sources, try the sbt-scalabuff project.

The ScalaBuff Wiki contains more information. For API documentation, see the project Scaladoc.

For any questions or general discussion, you can use the ScalaBuff Google Group but please feel free to create new issues for bug reports or feature requests. Thanks!

Versions

Version
1.4.0
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.2
1.2.0
1.1.2
1.1.1