Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 8, 2024
1 parent e25fbd4 commit 8198547
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.10.1
sbt.version=1.10.2
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
*/

addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.23.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.7.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
18 changes: 9 additions & 9 deletions src/main/scala/com/github/pjfanning/pekkobuild/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ package object pekkobuild {
else
"org.apache.pekko" %% module % pekkoVersion % config
},
resolvers ++= (if (pekkoSnapshot && !snapshotResolverInstalled)
Seq(Resolver.ApacheMavenSnapshotsRepo)
else Nil)
resolvers ++= {
val snapshotResolverInstalled = resolvers.value.exists {
case mr: MavenRepository => mr.root == Resolver.ApacheMavenSnapshotsRepo.root
case _ => false
}
if (pekkoSnapshot && !snapshotResolverInstalled)
Seq(Resolver.ApacheMavenSnapshotsRepo)
else Nil
}
)
}

private def snapshotResolverInstalled: Boolean =
resolvers.value.exists {
case mr: MavenRepository => mr.root == Resolver.ApacheMavenSnapshotsRepo.root
case _ => false
}
}
}

0 comments on commit 8198547

Please sign in to comment.