diff --git a/build.sbt b/build.sbt index 41582cc7..0beb1f76 100644 --- a/build.sbt +++ b/build.sbt @@ -9,16 +9,12 @@ import com.typesafe.sbt.packager.docker._ -ThisBuild / apacheSonatypeProjectProfile := "pekko" ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec) sourceDistName := "apache-pekko-persistence-cassandra" sourceDistIncubating := true -commands := commands.value.filterNot { command => - command.nameOption.exists { name => - name.contains("sonatypeRelease") || name.contains("sonatypeBundleRelease") - } -} +// pekkoInlineEnabled will need to be false when this is backported to 1.0.x +ThisBuild / pekkoInlineEnabled := true addCommandAlias("applyCodeStyle", ";scalafmtAll; scalafmtSbt; javafmtAll; docs/javafmtAll; +headerCreateAll") addCommandAlias("checkCodeStyle", diff --git a/project/Dependencies.scala b/project/Dependencies.scala index f15fd22b..d8565277 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -16,7 +16,7 @@ object Dependencies { val scala3Version = "3.3.1" val scalaVersions = Seq(scala212Version, scala213Version, scala3Version) - val pekkoVersion = System.getProperty("override.pekko.version", "1.0.2") + val pekkoVersion = PekkoCoreDependency.version val pekkoVersionInDocs = "1.0" val cassandraVersionInDocs = "4.0" diff --git a/project/PekkoCoreDependency.scala b/project/PekkoCoreDependency.scala new file mode 100644 index 00000000..b3244a59 --- /dev/null +++ b/project/PekkoCoreDependency.scala @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import com.github.pjfanning.pekkobuild.PekkoDependency + +object PekkoCoreDependency extends PekkoDependency { + override val checkProject: String = "pekko-cluster-sharding-typed" + override val module: Option[String] = None + override val currentVersion: String = "1.0.2" +} diff --git a/project/plugins.sbt b/project/plugins.sbt index aa057a41..5e533e24 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -9,13 +9,13 @@ addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.9") -addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.9.0") -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") +addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10") addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.4.0") addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") -addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.10") +addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.3.2") addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.11") addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")