-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.sbt
38 lines (35 loc) · 1.33 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sbtcrossproject.CrossPlugin.autoImport.crossProject
import sbtcrossproject.CrossPlugin.autoImport.CrossType.Full
licenses in ThisBuild := ("MIT", url("http://opensource.org/licenses/MIT")) :: Nil
organization in ThisBuild := "beyondthelines"
bintrayOrganization in ThisBuild := Some("beyondthelines")
bintrayPackageLabels in ThisBuild := Seq("scala", "protobuf")
val pbdirect = crossProject(JSPlatform, JVMPlatform)
.crossType(Full)
.in(file("."))
.enablePlugins(GitVersioning)
.settings(
name := "pbdirect",
scalaVersion := "2.11.12",
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0"),
libraryDependencies ++= Seq(
"com.chuusai" %%% "shapeless" % "2.3.3",
"org.typelevel" %%% "cats-core" % "2.0.0-M4",
"org.scalatest" %%% "scalatest" % "3.0.8" % Test
),
resolvers += "Sonatype OSS Snapshots" at
"https://oss.sonatype.org/content/repositories/releases",
git.useGitDescribe := true
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.google.protobuf" % "protobuf-java" % "3.9.0"
)
)
.jsSettings(
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-time" % "2.0.0-RC3" % "test",
"com.thesamet.scalapb" %%% "protobuf-runtime-scala" % "0.8.2"
)
)
addCommandAlias("fmt", ";scalafmt;test:scalafmt;scalafmtSbt")