-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (47 loc) · 1.96 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
56
import sbt.Keys.{libraryDependencies, organization, publishTo}
import sbt.url
import xerial.sbt.Sonatype.autoImport.sonatypePublishToBundle
lazy val scala212 = "2.12.17"
lazy val scala213 = "2.13.10"
ThisBuild / version := "1.0.2-SNAPSHOT"
ThisBuild / organization := "me.binwang.scala2grpc"
ThisBuild / scalaVersion := scala212
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
ThisBuild / licenses := Seq("AGPL" -> url("https://github.com/wb14123/scala2grpc/blob/master/LICENSE"))
ThisBuild / homepage := Some(url("https://github.com/wb14123/scala2grpc"))
ThisBuild / scmInfo := Some(ScmInfo(
url("https://github.com/wb14123/scala2grpc"),
"scm:https://github.com/wb14123/scala2grpc.git"
))
ThisBuild / developers := List(
Developer(id="wb14123", name="Bin Wang", email="bin.wang@mail.binwang.me", url=url("https://www.binwang.me"))
)
ThisBuild / dependencyCheckAssemblyAnalyzerEnabled := Option(false)
// ThisBuild / dependencyCheckFailBuildOnCVSS := 4
val supportedScalaVersions = List(scala212, scala213)
lazy val root = (project in file("."))
.aggregate(generator, plugin)
.settings(
name := "scala2grpc",
crossScalaVersions := Nil,
)
lazy val generator = (project in file("generator"))
.enablePlugins(Fs2Grpc)
.settings(
name := "generator",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
"io.grpc" % "grpc-netty-shaded" % scalapb.compiler.Version.grpcJavaVersion,
"org.scala-lang" % "scala-reflect" % "2.13.10",
// this project doesn't use cats effect, IO style logger is only used in generated file
"org.typelevel" %% "log4cats-slf4j" % "2.6.0",
)
)
lazy val plugin = (project in file("plugin"))
.enablePlugins(SbtPlugin)
.settings(
name := "plugin",
scalaVersion := scala212,
)