This repository was archived by the owner on Feb 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
55 lines (41 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.12.1")
scalacOptions ++= Seq("-feature", "-deprecation")
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
sonatypeProfileName := "com.whisk"
organization := "com.whisk"
name := "scalapb-playjson"
version := "0.2.1"
val scalaPbVersion = "0.5.47"
Project.inConfig(Test)(sbtprotoc.ProtocPlugin.protobufConfigSettings)
PB.targets in Compile := Nil
PB.targets in Test := Seq(
PB.gens.java -> (sourceManaged in Test).value,
scalapb.gen(javaConversions = true) -> (sourceManaged in Test).value
)
val playVer = Def.setting[String] {
if (scalaVersion.value startsWith "2.11.") "2.5.10"
else "2.6.0-M1"
}
libraryDependencies ++= Seq(
"com.trueaccord.scalapb" %% "scalapb-runtime" % scalaPbVersion,
"com.typesafe.play" %% "play-json" % playVer.value,
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"com.google.protobuf" % "protobuf-java-util" % "3.1.0" % "test",
"com.google.protobuf" % "protobuf-java" % "3.1.0" % "protobuf"
)
pomExtra in Global := {
<url>https://github.com/whisklabs/scalapb-playjson</url>
<scm>
<connection>scm:git:github.com/whisklabs/scalapb-playjson.git</connection>
<developerConnection>scm:git:git@github.com:whisklabs/scalapb-playjson.git</developerConnection>
<url>github.com/whisklabs/scalapb-playjson.git</url>
</scm>
<developers>
<developer>
<id>viktortnk</id>
<name>Viktor Taranenko</name>
<url>https://github.com/viktortnk</url>
</developer>
</developers>
}