Skip to content

Commit

Permalink
common settings
Browse files Browse the repository at this point in the history
  • Loading branch information
BaekGeunYoung committed Mar 13, 2024
1 parent ac6581d commit 9c6bc8f
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

ThisBuild / versionScheme := Some("early-semver")

ThisBuild / resolvers += "GitHub Package Registry (iamport/zio-grpc)" at "https://maven.pkg.github.com/iamport/zio-grpc"

ThisBuild / credentials ++= Seq(
Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
scala.sys.env("GITHUB_ACTOR"),
scala.sys.env("GITHUB_TOKEN")
)
)

ThisBuild / publishTo := Some(
"GitHub Package Registry (iamport/zio-grpc)" at "https://maven.pkg.github.com/iamport/zio-grpc"
val commonPublishSettings = Seq(
credentials ++= Seq(
Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
scala.sys.env("GITHUB_ACTOR"),
scala.sys.env("GITHUB_TOKEN")
)
),
publishTo := Some(
"GitHub Package Registry (iamport/zio-grpc)" at "https://maven.pkg.github.com/iamport/zio-grpc"
),
resolvers += "GitHub Package Registry (iamport/zio-grpc)" at "https://maven.pkg.github.com/iamport/zio-grpc"
)

publish / skip := true
Expand Down Expand Up @@ -63,6 +63,7 @@ lazy val core = projectMatrix
"dev.zio" %%% "zio-test-sbt" % Version.zio % "test"
)
)
.settings(commonPublishSettings)
.jvmPlatform(
ScalaVersions,
Seq(
Expand Down Expand Up @@ -98,6 +99,7 @@ lazy val codeGen = projectMatrix
"com.thesamet.scalapb" %% "compilerplugin" % scalapb.compiler.Version.scalapbVersion
)
)
.settings(commonPublishSettings)
.jvmPlatform(scalaVersions = ScalaVersions)

lazy val codeGenJVM212 = codeGen.jvm(Scala212)
Expand All @@ -113,6 +115,7 @@ lazy val protocGenZio = protocGenProject("protoc-gen-zio", codeGenJVM212)
(assembly / assemblyMergeStrategy).value.apply(x)
}
)
.settings(commonPublishSettings)

lazy val e2eProtos =
projectMatrix
Expand Down

0 comments on commit 9c6bc8f

Please sign in to comment.