Skip to content

Commit

Permalink
Update Finagle to 22.12.0
Browse files Browse the repository at this point in the history
Update Finagle to 22.12.0
  • Loading branch information
milanvdm authored Mar 6, 2023
2 parents 78cd0ec + bd016c0 commit 1043ccd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ lazy val root = project
|import org.typelevel.catbird.util._
""".stripMargin
)
.aggregate(util, effect, effect3, finagle, benchmark, `scalafix-rules`, `scalafix-tests`)
.aggregate(util, effect, effect3, finagle, benchmark, `scalafix-rules`, `scalafix-tests`, FinaglePlugin.rootFinagle)
.dependsOn(util, effect, finagle)

lazy val util = project
Expand Down
38 changes: 18 additions & 20 deletions project/FinaglePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,29 @@ object FinaglePlugin extends AutoPlugin {
* because the newest release is not binary compatible with the older
* versions it was checked against.
*/
val versions = Seq("22.7.0")
val versions = Seq("22.12.0")

lazy val modules = Seq(
"com.twitter" %% "finagle-core" % versions.head
)

override lazy val extraProjects = {
val subprojects = modules.map { module =>
Project(module.name, file(s".${module.name}"))
.enablePlugins(NoPublishPlugin)
.settings(
libraryDependencies += module,
mimaCurrentClassfiles := {
(Compile / dependencyClasspath).value.seq.map(_.data).find(_.getName.startsWith(module.name)).get
},
mimaPreviousArtifacts := versions.tail.map { v =>
module.withRevision(v)
}.toSet
)
}

val rootFinagle =
project.in(file(s".rootFinagle")).enablePlugins(NoPublishPlugin).aggregate(subprojects.map(_.project): _*)

rootFinagle +: subprojects
private lazy val subprojects = modules.map { module =>
Project(module.name, file(s".${module.name}"))
.enablePlugins(NoPublishPlugin)
.settings(
libraryDependencies += module,
mimaCurrentClassfiles := {
(Compile / dependencyClasspath).value.seq.map(_.data).find(_.getName.startsWith(module.name)).get
},
mimaPreviousArtifacts := versions.tail.map { v =>
module.withRevision(v)
}.toSet
)
}

lazy val rootFinagle =
project.in(file(s".rootFinagle")).enablePlugins(NoPublishPlugin).aggregate(subprojects.map(_.project): _*)

override lazy val extraProjects: Seq[Project] = rootFinagle +: subprojects

}

0 comments on commit 1043ccd

Please sign in to comment.