Skip to content

Commit

Permalink
build: Dynamic url to license (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren authored May 20, 2024
1 parent 077fa58 commit d4b1d48
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ lazy val `akka-dependencies` =
name := "akka-dependencies",
description := s"${description.value} (depending on Scala ${CrossVersion.binaryScalaVersion(scalaVersion.value)})",
homepage := Some(url("https://akka.io/")),
licenses := Seq(("BUSL-1.1", url("https://raw.githubusercontent.com/akka/akka-dependencies/v23.10.0/LICENSE"))),
licenses := {
val tagOrBranch =
if (isSnapshot.value) "main"
else "v" + version.value
Seq(("BUSL-1.1", url(s"https://raw.githubusercontent.com/akka/akka-dependencies/$tagOrBranch/LICENSE")))
},
developers := List(
Developer(
"akka-contributors",
Expand Down

0 comments on commit d4b1d48

Please sign in to comment.