Skip to content

Commit

Permalink
Fix apiURL for autoAPIMappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Sep 20, 2023
1 parent 288c515 commit 529ed8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/src/main/paradox/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

To understand the forces on version numbers, read about @ref:[Apache Pekko Connectors' versioning scheme](../other-docs/versioning.md).

## 1.0.1

### Bug Fixes

* Fix `apiURL` so that projects depending on pekko-connectors have the correct
url in their scaladocs via sbt's [autoAPIMappings](https://www.scala-sbt.org/1.x/docs/Howto-Scaladoc.html#Define+the+location+of+API+documentation+for+a+library) feature ([PR252](https://github.com/apache/incubator-pekko-connectors/pull/252))

## 1.0.0

Apache Pekko Connectors 1.0.0 is based on Alpakka 4.0.0. Pekko came about as a result of Lightbend's decision to make future
Expand Down
6 changes: 4 additions & 2 deletions project/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ object Common extends AutoPlugin {
case _ => Seq.empty[String]
}),
autoAPIMappings := true,
apiURL := Some(url(
s"https://pekko.apache.org/api/pekko-connectors/${version.value}/org/apache/pekko/stream/connectors/index.html")),
apiURL := {
val apiVersion = if (isSnapshot.value) "current" else version.value
Some(url(s"https://pekko.apache.org/api/pekko-connectors/$apiVersion/"))
},
// show full stack traces and test case durations
Test / testOptions += Tests.Argument("-oDF"),
// -a Show stack traces and exception class name for AssertionErrors.
Expand Down

0 comments on commit 529ed8d

Please sign in to comment.