From 6821542fdbc4aaa53e60bb717427637694b24a5f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 29 Sep 2025 08:57:58 +0200 Subject: [PATCH 1/4] chore: docs and resolver in sample --- .github/workflows/ci.yml | 2 +- src/main/g8/README.md | 8 ++++++++ src/main/g8/build.sbt | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bba52d..0d6bd71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ permissions: jobs: build-test: if: github.repository == 'akka/akka-http-quickstart-scala.g8' - runs-on: ubuntu-22.04 + runs-on: Akka-Default steps: - name: Checkout diff --git a/src/main/g8/README.md b/src/main/g8/README.md index 2fd4715..6e97d90 100644 --- a/src/main/g8/README.md +++ b/src/main/g8/README.md @@ -9,6 +9,14 @@ Sources in the sample: * `UserRegistry.scala` -- the actor which handles the registration requests * `JsonFormats.scala` -- converts the JSON data from requests into Scala types and from Scala types into JSON responses +## Configure the resolver + +Visit https://account.akka.io/token to generate your custom resolver token and configure it in `build.sbt`: + +``` +resolvers += "Akka library repository".at("https://repo.akka.io/{your custom resolver here}/secure ") +``` + ## Interacting with the sample After starting the sample with `sbt run` the following requests can be made: diff --git a/src/main/g8/build.sbt b/src/main/g8/build.sbt index 39da8ea..d4d5f92 100644 --- a/src/main/g8/build.sbt +++ b/src/main/g8/build.sbt @@ -1,7 +1,7 @@ lazy val akkaHttpVersion = "$akka_http_version$" lazy val akkaVersion = "$akka_version$" -resolvers += "Akka library repository".at("https://repo.akka.io/maven") +resolvers += "Akka library repository".at("https://repo.akka.io/maven/github_actions") // Run in a separate JVM, to make sure sbt waits until all threads have // finished before returning. From 73b0bc582846b1ba3e4a93d3556321a47eb77cdd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 29 Sep 2025 09:35:39 +0200 Subject: [PATCH 2/4] resolver readme --- src/main/g8/README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/g8/README.md b/src/main/g8/README.md index 6e97d90..53a86de 100644 --- a/src/main/g8/README.md +++ b/src/main/g8/README.md @@ -11,11 +11,8 @@ Sources in the sample: ## Configure the resolver -Visit https://account.akka.io/token to generate your custom resolver token and configure it in `build.sbt`: - -``` -resolvers += "Akka library repository".at("https://repo.akka.io/{your custom resolver here}/secure ") -``` +> [!TIP] +> The Akka dependencies are available from Akka’s secure library repository. To access them you need to use a secure, tokenized URL as specified at https://account.akka.io/token. ## Interacting with the sample From 7050d67eae69372428a3bc0fb4685465faefdf42 Mon Sep 17 00:00:00 2001 From: Sebastian Alfers Date: Mon, 29 Sep 2025 10:35:58 +0200 Subject: [PATCH 3/4] Update src/main/g8/build.sbt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Johan Andrén --- src/main/g8/build.sbt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/g8/build.sbt b/src/main/g8/build.sbt index d4d5f92..76057cd 100644 --- a/src/main/g8/build.sbt +++ b/src/main/g8/build.sbt @@ -1,6 +1,7 @@ lazy val akkaHttpVersion = "$akka_http_version$" lazy val akkaVersion = "$akka_version$" +// Replace this with your tokenized resolver URL, see README.md resolvers += "Akka library repository".at("https://repo.akka.io/maven/github_actions") // Run in a separate JVM, to make sure sbt waits until all threads have From 90e37ea208da442f54d9975436fa4220d0fa09cb Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 29 Sep 2025 10:51:11 +0200 Subject: [PATCH 4/4] update README --- src/main/g8/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/g8/README.md b/src/main/g8/README.md index 53a86de..5207706 100644 --- a/src/main/g8/README.md +++ b/src/main/g8/README.md @@ -11,7 +11,6 @@ Sources in the sample: ## Configure the resolver -> [!TIP] > The Akka dependencies are available from Akka’s secure library repository. To access them you need to use a secure, tokenized URL as specified at https://account.akka.io/token. ## Interacting with the sample