Skip to content

SBT plugin to generate code from json Actor API Schema

License

Notifications You must be signed in to change notification settings

zaminbalonet/sbt-actor-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-actor-api

SBT plugin to generate code from json Actor API Schema

Usage

Adding the plugin dependency

In your project, create a file for plugin library dependencies project/plugins.sbt and add the following lines:

addSbtPlugin("im.actor" % "sbt-actor-api" % "0.1.0-SNAPSHOT")

The dependency to "com.google.protobuf" % "protobuf-java" is not automatically added to the any of scopes.

Importing sbt-actor-api settings

To actually "activate" the plugin, its settings need to be included in the build.

build.sbt
import im.actor.SbtActorApi

Seq(SbtActorApi.settings: _*)
build.scala
import sbt._

import im.actor.SbtActorApi

object MyBuild extends Build {
  lazy val myproject = MyProject(
    id = "myproject",
    base = file("."),
    settings = Defaults.defaultSettings ++ SbtActorApi.settings ++ Seq(
        /* custom settings here */
    )
  )
}

Compiling schema

Execute actor-schema-generate in sbt.

About

SBT plugin to generate code from json Actor API Schema

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%