in project/PekkoDependency.scala [90:116]
private def determineLatestSnapshot(prefix: String = ""): String = {
import sbt.librarymanagement.Http.http
import gigahorse.GigahorseSupport.url
import scala.concurrent.Await
import scala.concurrent.duration._
val snapshotVersionR = """href=".*/((\d+)\.(\d+)\.(\d+)\+(\d+)-[0-9a-f]+-SNAPSHOT)/"""".r
// pekko-cluster-sharding-typed_2.13 seems to be the last nightly published by `pekko-publish-nightly` so if that's there then it's likely the rest also made it
val body = Await.result(http.run(url(
s"${Resolver.ApacheMavenSnapshotsRepo.root}org/apache/pekko/pekko-cluster-sharding-typed_2.13/")),
10.seconds).bodyAsString
val allVersions =
snapshotVersionR.findAllMatchIn(body)
.map {
case Groups(full, ep, maj, min, offset) =>
(
ep.toInt,
maj.toInt,
min.toInt,
offset.toInt) -> full
}
.filter(_._2.startsWith(prefix))
.toVector.sortBy(_._1)
allVersions.last._2
}