Skip to content

Commit

Permalink
add 11x support
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Dec 31, 2024
1 parent dc96f2c commit 0fcd798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ This is usable as is in v0.2.x but in v0.3.0 and above, you need to add a file t
* `-Dpekko.build.pekko.version=latest-release` will find latest release regardless of version number (December 2023 - this evals to `1.0.2`)
* `-Dpekko.build.pekko.version=main` will find latest snapshot for `main` branch (December 2023 - this evals to `1.1.0-M0+...-SNAPSHOT`)
* `-Dpekko.build.pekko.version=1.0.x` will find latest snapshot for `1.0.x` branch

* `-Dpekko.build.pekko.version=1.1.x` will find latest snapshot for `1.1.x` branch
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ trait PekkoDependency extends VersionRegex {
Option(System.getProperty(s"pekko.build.$moduleName.version")) match {
case Some("main") => snapshotMain
case Some("1.0.x") => snapshot10x
case Some("1.1.x") => snapshot11x
case Some("latest-release") => latestRelease
case Some("default") | None => Artifact(defaultVersion)
case Some(other) => Artifact(other, isSnapshot = true)
Expand All @@ -41,6 +42,7 @@ trait PekkoDependency extends VersionRegex {
lazy val default: Dependency = dependency(defaultVersion)

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

Expand Down

0 comments on commit 0fcd798

Please sign in to comment.