Skip to content

Commit

Permalink
bump: sbt 1.5.6, plugins, deprecations (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru authored Dec 13, 2021
1 parent 16ebdf6 commit c231d5b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion project/Common.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sbt._
import sbt.Keys._
import akka.grpc.sbt.AkkaGrpcPlugin
import com.lightbend.sbt.JavaFormatterPlugin.autoImport.javafmtOnCompile
import de.heikoseeberger.sbtheader.{ AutomateHeaderPlugin, HeaderPlugin }
import org.scalafmt.sbt.ScalafmtPlugin
import org.scalafmt.sbt.ScalafmtPlugin.autoImport.scalafmtOnCompile
Expand Down Expand Up @@ -31,12 +32,13 @@ object CommonSettings extends AutoPlugin {
startYear := Some(2021),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scalafmtOnCompile := true,
javafmtOnCompile := true,
scalaVersion := Dependencies.ScalaVersion,
run / javaOptions ++= {
sys.props.collect { case (key, value) if key.startsWith("akka") => s"-D$key=$value" }(breakOut)
}) ++ (
if (sys.props.contains("disable.apidocs"))
Seq(Compile / doc / sources := Seq.empty, publishArtifact in (Compile, packageDoc) := false)
Seq(Compile / doc / sources := Seq.empty, Compile / packageDoc / publishArtifact := false)
else Seq.empty
)

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.9
sbt.version=1.5.6
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.4")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.lightbend.akka.grpc" % "sbt-akka-grpc" % "2.1.1")
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.6.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.5")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object AkkaserverlessPlugin extends AutoPlugin {
++ rootPackage.value.map(AkkaserverlessGenerator.rootPackage)) -> (Compile / sourceManaged).value,
Compile / temporaryUnmanagedDirectory := (Compile / crossTarget).value / "akkaserverless-unmanaged",
Test / temporaryUnmanagedDirectory := (Test / crossTarget).value / "akkaserverless-unmanaged-test",
protobufDescriptorSetOut := (resourceManaged in Compile).value / "protobuf" / "descriptor-sets" / "user-function.desc",
protobufDescriptorSetOut := (Compile / resourceManaged).value / "protobuf" / "descriptor-sets" / "user-function.desc",
rootPackage := None,
// FIXME there is a name clash between the Akka gRPC server-side service 'handler'
// and the Akka Serverless 'handler'. For now working around it by only generating
Expand All @@ -79,12 +79,12 @@ object AkkaserverlessPlugin extends AutoPlugin {
Compile / PB.targets ++= Seq(
genUnmanaged((akkaGrpcCodeGeneratorSettings.value :+ AkkaserverlessGenerator.enableDebug)
++ rootPackage.value.map(AkkaserverlessGenerator.rootPackage)) -> (Compile / temporaryUnmanagedDirectory).value),
Compile / PB.generate := (PB.generate in Compile)
Compile / PB.generate := (Compile / PB.generate)
.dependsOn(Def.task {
protobufDescriptorSetOut.value.getParentFile.mkdirs()
})
.value,
PB.protocOptions in Compile ++= Seq(
Compile / PB.protocOptions ++= Seq(
"--descriptor_set_out",
protobufDescriptorSetOut.value.getAbsolutePath,
"--include_source_info"),
Expand Down

0 comments on commit c231d5b

Please sign in to comment.