Skip to content

Commit

Permalink
only look up dependency versions if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 6, 2024
1 parent 0d42f2b commit 051a798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ object PekkoDependency extends VersionRegex {

private val defaultPekkoVersion = System.getProperty("pekko.build.pekko.min.version", "1.0.2")
val minPekkoVersion: String = "1.0.0"
val default: Dependency = pekkoDependency(defaultPekkoVersion)
lazy val default: Dependency = pekkoDependency(defaultPekkoVersion)

lazy val snapshot10x = Artifact(determineLatestSnapshot("1.0"), true)
lazy val snapshotMain = Artifact(determineLatestSnapshot(), true)
lazy val latestRelease = Artifact(determineLatestRelease(), false)

val pekkoVersion: String = default match {
lazy val pekkoVersion: String = default match {
case Artifact(version, _) => version
case Sources(uri, _) => uri
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ object PekkoHttpDependency extends VersionRegex {
}

private val defaultPekkoHttpVersion = System.getProperty("pekko.build.pekko.http.min.version", "1.0.0")
val default: Dependency = pekkoHttpDependency(defaultPekkoHttpVersion)
lazy val default: Dependency = pekkoHttpDependency(defaultPekkoHttpVersion)

lazy val snapshot10x = Artifact(determineLatestSnapshot("1.0"), true)
lazy val snapshotMain = Artifact(determineLatestSnapshot(), true)
lazy val latestRelease = Artifact(determineLatestRelease(), false)

val pekkoHttpVersion: String = default match {
lazy val pekkoHttpVersion: String = default match {
case Artifact(version, _) => version
case Sources(uri, _) => uri
}
Expand Down

0 comments on commit 051a798

Please sign in to comment.