Skip to content

Commit

Permalink
add 1.1.x support (#18)
Browse files Browse the repository at this point in the history
* add 11x support

* add 1.2.x

* Update README.md
  • Loading branch information
pjfanning authored Dec 31, 2024
1 parent 9815a80 commit 701ab01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ 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
* `-Dpekko.build.pekko.version=1.2.x` will find latest snapshot for `1.2.x` branch
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ 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("1.2.x") => snapshot12x
case Some("latest-release") => latestRelease
case Some("default") | None => Artifact(defaultVersion)
case Some(other) => Artifact(other, isSnapshot = true)
Expand All @@ -41,6 +43,8 @@ trait PekkoDependency extends VersionRegex {
lazy val default: Dependency = dependency(defaultVersion)

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

Expand Down

0 comments on commit 701ab01

Please sign in to comment.