From 34be4b7d537e8b723b6ce47d3d33a0b14248feea Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Tue, 22 Oct 2024 03:26:19 -0700 Subject: [PATCH 1/7] issue 724: Fix conflicts in pekko-http lib dependencies Signed-off-by: Oleksandr Mordyk --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 90677af2..8dd5c321 100644 --- a/build.sbt +++ b/build.sbt @@ -33,7 +33,7 @@ lazy val root = (project in file(".")) description := "'Containerized exchange-api'", name := "amd64_exchange-api", organization := "org.openhorizon", - pekkoHttpVersion := "[1.0.1]", + pekkoHttpVersion := "[1.1.0]", pekkoVersion := "[1.0.2]", release := sys.env.getOrElse("GIT_SHORT_SHA", versionFunc()), resolvers += Classpaths.typesafeReleases, From 955677dddf2c4c47936f077d0c078583d38d24f8 Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Wed, 23 Oct 2024 01:42:26 -0700 Subject: [PATCH 2/7] issue 724: Update pekko-http-jackson, update exchange-api version - Update Exchange-api to version 2.125.1. - Library pekko-http-jackson was updated to version 3.0.0. - Fixed warnings in exchange-api and unit-tests. Signed-off-by: Oleksandr Mordyk --- CHANGELOG.md | 6 ++++++ build.sbt | 2 +- docs/openapi-3-developer.json | 2 +- docs/openapi-3-user.json | 2 +- src/main/resources/version.txt | 2 +- .../route/agent/AgentConfigurationManagement.scala | 8 ++------ .../org/openhorizon/exchangeapi/route/node/Node.scala | 2 +- .../org/openhorizon/exchangeapi/route/user/User.scala | 4 ++-- .../route/organization/TestPostOrgChangesRoute.scala | 4 ++-- .../exchangeapi/route/user/TestPatchUserRoute.scala | 2 +- 10 files changed, 18 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a01ea2e..7dbd093c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [2.125.1](https://github.com/open-horizon/exchange-api/pull/725) - 2024-10-22 +- Issue 724: Version conflicts in library(pekko-http) dependencies +- pekko-http 1.0.1 -> 1.1.0 +- pekko-http-jackson 2.3.3 -> 3.0.0 +- Fix warnings + ## [2.125.0](https://github.com/open-horizon/exchange-api/pull/720) - 2024-09-30 - Removed support for TLS v1.2. - Removed an API key authentication pathway. diff --git a/build.sbt b/build.sbt index 8dd5c321..a9265179 100644 --- a/build.sbt +++ b/build.sbt @@ -51,7 +51,7 @@ lazy val root = (project in file(".")) "org.apache.pekko" %% "pekko-http-xml" % pekkoHttpVersion.value, // "org.apache.pekko" %% "pekko-stream" % "[2.6.14,)", // "org.apache.pekko" %% "pekko-http-spray-json" % "[10.2.1,)", - "com.github.pjfanning" %% "pekko-http-jackson" % "[2.3.3,)", + "com.github.pjfanning" %% "pekko-http-jackson" % "[3.0.0,)", "org.apache.pekko" %% "pekko-http-cors" % "[1.0.0]", "org.apache.pekko" %% "pekko-slf4j" % "[1.0.1]", diff --git a/docs/openapi-3-developer.json b/docs/openapi-3-developer.json index febda410..18e3f59e 100644 --- a/docs/openapi-3-developer.json +++ b/docs/openapi-3-developer.json @@ -8,7 +8,7 @@ "name" : "Apache License Version 2.0", "url" : "https://www.apache.org/licenses/LICENSE-2.0" }, - "version" : "2.125.0" + "version" : "2.125.1" }, "externalDocs" : { "description" : "Open-horizon ExchangeAPI", diff --git a/docs/openapi-3-user.json b/docs/openapi-3-user.json index c7d492e5..6bafc98b 100644 --- a/docs/openapi-3-user.json +++ b/docs/openapi-3-user.json @@ -8,7 +8,7 @@ "name" : "Apache License Version 2.0", "url" : "https://www.apache.org/licenses/LICENSE-2.0" }, - "version" : "2.125.0" + "version" : "2.125.1" }, "externalDocs" : { "description" : "Open-horizon ExchangeAPI", diff --git a/src/main/resources/version.txt b/src/main/resources/version.txt index 27913085..0fe613ab 100644 --- a/src/main/resources/version.txt +++ b/src/main/resources/version.txt @@ -1 +1 @@ -2.125.0 +2.125.1 diff --git a/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala b/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala index 6c334a4f..dd74a813 100644 --- a/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala +++ b/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala @@ -61,12 +61,8 @@ trait AgentConfigurationManagement extends JacksonSupport with AuthenticationSup certificate <- AgentCertificateVersionsTQ.delete timestamp: Timestamp = ApiTime.nowUTCTimestamp - - changed <- - if(AgentVersionsChangedTQ.getChanged("IBM").result == 0) - AgentVersionsChangedTQ += (timestamp, "IBM") - else - AgentVersionsChangedTQ.getChanged("IBM").update(timestamp) + + changed <- AgentVersionsChangedTQ.getChanged("IBM").update(timestamp) configuration <- AgentConfigurationVersionsTQ.delete resource <- ResourceChangesTQ += ResourceChangeRow(category = ResChangeCategory.ORG.toString, changeId = 0L, diff --git a/src/main/scala/org/openhorizon/exchangeapi/route/node/Node.scala b/src/main/scala/org/openhorizon/exchangeapi/route/node/Node.scala index 89df0310..3c4b3db3 100644 --- a/src/main/scala/org/openhorizon/exchangeapi/route/node/Node.scala +++ b/src/main/scala/org/openhorizon/exchangeapi/route/node/Node.scala @@ -18,7 +18,7 @@ import org.openhorizon.exchangeapi.utility.ApiTime.fixFormatting import org.openhorizon.exchangeapi.ExchangeApiApp.{exchAuth, validateWithMsg} import org.openhorizon.exchangeapi.auth.{Access, AccessDeniedException, AuthCache, AuthRoles, AuthenticationSupport, BadInputException, DBProcessingError, IUser, Identity, OrgAndId, Password, ResourceNotFoundException, TNode} import org.openhorizon.exchangeapi.table.deploymentpattern.{PatternRow, Patterns, PatternsTQ} -import org.openhorizon.exchangeapi.table.node.{Node, NodeRow, NodeType, NodesTQ} +import org.openhorizon.exchangeapi.table.node.{NodeRow, NodeType, NodesTQ} import org.openhorizon.exchangeapi.table.node.group.NodeGroupTQ import org.openhorizon.exchangeapi.table.node.group.assignment.NodeGroupAssignmentTQ import org.openhorizon.exchangeapi.table.organization.{OrgLimits, OrgsTQ} diff --git a/src/main/scala/org/openhorizon/exchangeapi/route/user/User.scala b/src/main/scala/org/openhorizon/exchangeapi/route/user/User.scala index d6fe7556..c04fdb68 100644 --- a/src/main/scala/org/openhorizon/exchangeapi/route/user/User.scala +++ b/src/main/scala/org/openhorizon/exchangeapi/route/user/User.scala @@ -12,7 +12,7 @@ import org.apache.pekko.http.scaladsl.model.{StatusCode, StatusCodes} import org.apache.pekko.http.scaladsl.server.Directives.{as, complete, delete, entity, get, patch, path, post, put, _} import org.apache.pekko.http.scaladsl.server.Route import org.openhorizon.exchangeapi.auth.{Access, AuthCache, AuthenticationSupport, BadInputException, IUser, Identity, OrgAndId, Password, Role, TUser} -import org.openhorizon.exchangeapi.table.user.{User, UserRow, UsersTQ} +import org.openhorizon.exchangeapi.table.user.{User => UserTable, UserRow, UsersTQ} import org.openhorizon.exchangeapi.utility.{ApiRespType, ApiResponse, ApiTime, ExchMsg, ExchangePosgtresErrorHandling, HttpCode, StrConstants} import slick.jdbc.PostgresProfile.api._ @@ -92,7 +92,7 @@ trait User extends JacksonSupport with AuthenticationSupport { logger.debug(s"GET /orgs/$organization/users/$realUsername result size: ${list.size}") val users: Map[String, org.openhorizon.exchangeapi.table.user.User] = - list.map(e => e.username -> User(if (identity.isSuperUser || identity.isHubAdmin) e.hashedPw else StrConstants.hiddenPw, e.admin, e.hubAdmin, e.email, e.lastUpdated, e.updatedBy)).toMap + list.map(e => e.username -> UserTable(if (identity.isSuperUser || identity.isHubAdmin) e.hashedPw else StrConstants.hiddenPw, e.admin, e.hubAdmin, e.email, e.lastUpdated, e.updatedBy)).toMap val code: StatusCode = if (users.nonEmpty) StatusCodes.OK diff --git a/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala b/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala index 77db288a..976bf4df 100644 --- a/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala +++ b/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala @@ -324,10 +324,10 @@ class TestPostOrgChangesRoute extends AnyFunSuite with BeforeAndAfterAll with Be // Resource Change that is dynamically needed, specific to the test case. //only does one at a time for ease of deleting when finished def fixtureResourceChange(testCode: ResourceChangeRow => Any, testData: ResourceChangeRow): Any = { - try{ + //try{ Await.result(DBCONNECTION.run(ResourceChangesTQ += testData), AWAITDURATION) testCode(testData) - } + //} //finally Await.result(DBCONNECTION.run(ResourceChangesTQ.filter(x => x.orgId === testData.orgId && x.resource === testData.resource && x.id === testData.id).delete), AWAITDURATION) } diff --git a/src/test/scala/org/openhorizon/exchangeapi/route/user/TestPatchUserRoute.scala b/src/test/scala/org/openhorizon/exchangeapi/route/user/TestPatchUserRoute.scala index f218c2f2..f727f557 100644 --- a/src/test/scala/org/openhorizon/exchangeapi/route/user/TestPatchUserRoute.scala +++ b/src/test/scala/org/openhorizon/exchangeapi/route/user/TestPatchUserRoute.scala @@ -179,7 +179,7 @@ class TestPatchUserRoute extends AnyFunSuite with BeforeAndAfterAll with BeforeA Await.ready(DBCONNECTION.run( TESTUSERS(0).updateUser() andThen TESTUSERS(2).updateUser() andThen - TESTUSERS(4).updateUser + TESTUSERS(4).updateUser() ), AWAITDURATION) } From e641bcb5e639a2b93c02ef89978c0ca4afb55b91 Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Tue, 22 Oct 2024 03:13:59 -0700 Subject: [PATCH 3/7] issue 724: Add Exchange-API quick start document Signed-off-by: Oleksandr Mordyk --- docs/QuickStart.md | 98 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 docs/QuickStart.md diff --git a/docs/QuickStart.md b/docs/QuickStart.md new file mode 100644 index 00000000..4a281447 --- /dev/null +++ b/docs/QuickStart.md @@ -0,0 +1,98 @@ +--- +copyright: +years: 2024 +lastupdated: "2024-10-22" +layout: page +title: "Exchange API Server" +description: "Quick start" + +nav_order: 3 +parent: Management Hub +--- + + +# Exchange API Server quick start + +## Intro +This document describes the environment and the set of steps aiming to create a +local development and debugging environment. + +## Prerequisites +* OS: Ubuntu 24.04 LTS. + +## Dependencies +* [Java 17](https://www.java.com/en/) +* [SBT](https://www.scala-sbt.org/) +* [PostgreSQL](https://www.postgresql.org/) + +## Installation + +### Create a new user (optional) +For development purposes recommended not to use root user. Command below will create +a new Ubuntu user. +``` +useradd -d /home/new_user -s /bin/bash -m new_user +sudo passwd new_user +usermod -aG sudo new_user +``` + +### Install Java 17 +``` +sudo apt-get update +sudo apt install openjdk-17-jdk -y +``` + +### Install SBT +``` +sudo apt-get update +sudo apt-get install apt-transport-https curl gnupg -yqq +echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list +echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list +curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import +sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg +sudo apt-get update +sudo apt-get install sbt +``` + +### Install Postgresql +``` +sudo apt-get update +sudo apt-get install postgresql +sudo systemctl status postgresql +``` + +### Configure firewall rule for Postgresql port 5432 +``` +sudo iptables -A INPUT -p tcp --dport 5432 -m state --state NEW,ESTABLISHED -j ACCEPT +``` + +### Create a new DB +``` +sudo -u postgres psql +postgres=# CREATE USER new_user WITH PASSWORD 'password'; +postgres=# CREATE DATABASE horizon OWNER new_user; +\q +``` + +### Test connection to DB +``` +psql "host=localhost dbname=horizon user=kevin password='password'" +``` + + +### Export environment variables: +``` +export EXCHANGE_DB_NAME=openhorizon +export EXCHANGE_DB_PW=password +export EXCHANGE_DB_USER=new_user +export EXCHANGE_ROOT_PW=root_password +``` + +### Clone exchange-api and run it: +``` +https://github.com/open-horizon/exchange-api.git + +~/exchange-api$ sbt + +sbt:amd64_exchange-api> reStart +``` From 6ffe38cb507d3a959a0bcbf32af21c8c3d9306ac Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Wed, 23 Oct 2024 04:44:31 -0700 Subject: [PATCH 4/7] update_doc: Improve structure of the document Signed-off-by: Oleksandr Mordyk --- docs/QuickStart.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/docs/QuickStart.md b/docs/QuickStart.md index 4a281447..01ad858b 100644 --- a/docs/QuickStart.md +++ b/docs/QuickStart.md @@ -10,17 +10,19 @@ nav_order: 3 parent: Management Hub --- - # Exchange API Server quick start ## Intro + This document describes the environment and the set of steps aiming to create a local development and debugging environment. ## Prerequisites + * OS: Ubuntu 24.04 LTS. ## Dependencies + * [Java 17](https://www.java.com/en/) * [SBT](https://www.scala-sbt.org/) * [PostgreSQL](https://www.postgresql.org/) @@ -28,22 +30,26 @@ local development and debugging environment. ## Installation ### Create a new user (optional) + For development purposes recommended not to use root user. Command below will create a new Ubuntu user. -``` + +```bash useradd -d /home/new_user -s /bin/bash -m new_user sudo passwd new_user usermod -aG sudo new_user ``` ### Install Java 17 -``` + +```bash sudo apt-get update sudo apt install openjdk-17-jdk -y ``` ### Install SBT -``` + +```bash sudo apt-get update sudo apt-get install apt-transport-https curl gnupg -yqq echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list @@ -55,19 +61,22 @@ sudo apt-get install sbt ``` ### Install Postgresql -``` + +```bash sudo apt-get update sudo apt-get install postgresql sudo systemctl status postgresql ``` ### Configure firewall rule for Postgresql port 5432 -``` + +```bash sudo iptables -A INPUT -p tcp --dport 5432 -m state --state NEW,ESTABLISHED -j ACCEPT ``` ### Create a new DB -``` + +```bash sudo -u postgres psql postgres=# CREATE USER new_user WITH PASSWORD 'password'; postgres=# CREATE DATABASE horizon OWNER new_user; @@ -75,24 +84,24 @@ postgres=# CREATE DATABASE horizon OWNER new_user; ``` ### Test connection to DB -``` + +```bash psql "host=localhost dbname=horizon user=kevin password='password'" ``` +### Export environment variables -### Export environment variables: -``` +```bash export EXCHANGE_DB_NAME=openhorizon export EXCHANGE_DB_PW=password export EXCHANGE_DB_USER=new_user export EXCHANGE_ROOT_PW=root_password ``` -### Clone exchange-api and run it: -``` -https://github.com/open-horizon/exchange-api.git +### Clone exchange-api and run it +```bash +https://github.com/open-horizon/exchange-api.git ~/exchange-api$ sbt - sbt:amd64_exchange-api> reStart ``` From b65f97ab9c47fc4a9f527ed35a0b142d23e9a0e9 Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Thu, 24 Oct 2024 00:02:06 -0700 Subject: [PATCH 5/7] issue 724: Fix code review remarks Signed-off-by: Oleksandr Mordyk --- .../route/agent/AgentConfigurationManagement.scala | 10 +++++++++- .../route/organization/TestPostOrgChangesRoute.scala | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala b/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala index dd74a813..c55fcc5a 100644 --- a/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala +++ b/src/main/scala/org/openhorizon/exchangeapi/route/agent/AgentConfigurationManagement.scala @@ -62,7 +62,15 @@ trait AgentConfigurationManagement extends JacksonSupport with AuthenticationSup timestamp: Timestamp = ApiTime.nowUTCTimestamp - changed <- AgentVersionsChangedTQ.getChanged("IBM").update(timestamp) + + checkAgentVersionsResult <- AgentVersionsChangedTQ.getChanged("IBM").result + + changed <- + if(checkAgentVersionsResult == 0) + AgentVersionsChangedTQ += (timestamp, "IBM") + else + AgentVersionsChangedTQ.getChanged("IBM").update(timestamp) + configuration <- AgentConfigurationVersionsTQ.delete resource <- ResourceChangesTQ += ResourceChangeRow(category = ResChangeCategory.ORG.toString, changeId = 0L, diff --git a/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala b/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala index 976bf4df..77db288a 100644 --- a/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala +++ b/src/test/scala/org/openhorizon/exchangeapi/route/organization/TestPostOrgChangesRoute.scala @@ -324,10 +324,10 @@ class TestPostOrgChangesRoute extends AnyFunSuite with BeforeAndAfterAll with Be // Resource Change that is dynamically needed, specific to the test case. //only does one at a time for ease of deleting when finished def fixtureResourceChange(testCode: ResourceChangeRow => Any, testData: ResourceChangeRow): Any = { - //try{ + try{ Await.result(DBCONNECTION.run(ResourceChangesTQ += testData), AWAITDURATION) testCode(testData) - //} + } //finally Await.result(DBCONNECTION.run(ResourceChangesTQ.filter(x => x.orgId === testData.orgId && x.resource === testData.resource && x.id === testData.id).delete), AWAITDURATION) } From ddf4b1a3348761169ff4fa46a35028086f24e44e Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Thu, 24 Oct 2024 02:24:48 -0700 Subject: [PATCH 6/7] issue 724: Update/add new dependencies - Update pekko-http-cors, pekko-slf4j to version 1.1.0. - Add new dependencies pekko-actor, pekko-stream, pekko-protobuf. Signed-off-by: Oleksandr Mordyk --- CHANGELOG.md | 5 +++++ build.sbt | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dbd093c..0b7caf49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - Issue 724: Version conflicts in library(pekko-http) dependencies - pekko-http 1.0.1 -> 1.1.0 - pekko-http-jackson 2.3.3 -> 3.0.0 +- pekko-http-cors 1.0.1 -> 1.1.0 +- pekko-slf4j 1.0.1 -> 1.1.0 +- pekko-actor 1.1.0 +- pekko-stream 1.1.0 +- pekko-protobuf-v3 1.1.0 - Fix warnings ## [2.125.0](https://github.com/open-horizon/exchange-api/pull/720) - 2024-09-30 diff --git a/build.sbt b/build.sbt index a9265179..238a8815 100644 --- a/build.sbt +++ b/build.sbt @@ -52,9 +52,14 @@ lazy val root = (project in file(".")) // "org.apache.pekko" %% "pekko-stream" % "[2.6.14,)", // "org.apache.pekko" %% "pekko-http-spray-json" % "[10.2.1,)", "com.github.pjfanning" %% "pekko-http-jackson" % "[3.0.0,)", - "org.apache.pekko" %% "pekko-http-cors" % "[1.0.0]", - "org.apache.pekko" %% "pekko-slf4j" % "[1.0.1]", - + "org.apache.pekko" %% "pekko-http-cors" % "[1.1.0]", + "org.apache.pekko" %% "pekko-slf4j" % "[1.1.0]", + + "org.apache.pekko" %% "pekko-actor" % "1.1.0", + "org.apache.pekko" %% "pekko-stream" % "1.1.0", + "org.apache.pekko" %% "pekko-protobuf-v3" % "1.1.0", + + "org.json4s" %% "json4s-native" % "4.0.6", "org.json4s" %% "json4s-jackson" % "4.0.6", From f30ad98339ad5bdacc4ec18eadcef4aba31fe1eb Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Tue, 29 Oct 2024 05:25:36 -0700 Subject: [PATCH 7/7] issue 724: Update/remove dependencies - Update pekko-slf4j to version 1.1.1. - Remove dependencies pekko-actor, pekko-stream, pekko-protobuf. Signed-off-by: Oleksandr Mordyk --- CHANGELOG.md | 8 +++----- build.sbt | 9 ++------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b7caf49..b4da511a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - pekko-http 1.0.1 -> 1.1.0 - pekko-http-jackson 2.3.3 -> 3.0.0 - pekko-http-cors 1.0.1 -> 1.1.0 -- pekko-slf4j 1.0.1 -> 1.1.0 -- pekko-actor 1.1.0 -- pekko-stream 1.1.0 -- pekko-protobuf-v3 1.1.0 -- Fix warnings +- pekko-slf4j 1.0.1 -> 1.1.1 +- swagger-pekko-http 2.12.0 -> 2.14.0 +- Fixed warnings ## [2.125.0](https://github.com/open-horizon/exchange-api/pull/720) - 2024-09-30 - Removed support for TLS v1.2. diff --git a/build.sbt b/build.sbt index 238a8815..cc969194 100644 --- a/build.sbt +++ b/build.sbt @@ -53,19 +53,14 @@ lazy val root = (project in file(".")) // "org.apache.pekko" %% "pekko-http-spray-json" % "[10.2.1,)", "com.github.pjfanning" %% "pekko-http-jackson" % "[3.0.0,)", "org.apache.pekko" %% "pekko-http-cors" % "[1.1.0]", - "org.apache.pekko" %% "pekko-slf4j" % "[1.1.0]", - - "org.apache.pekko" %% "pekko-actor" % "1.1.0", - "org.apache.pekko" %% "pekko-stream" % "1.1.0", - "org.apache.pekko" %% "pekko-protobuf-v3" % "1.1.0", - + "org.apache.pekko" %% "pekko-slf4j" % "[1.1.1]", "org.json4s" %% "json4s-native" % "4.0.6", "org.json4s" %% "json4s-jackson" % "4.0.6", "jakarta.ws.rs" % "jakarta.ws.rs-api" % "[3.1.0]", // "org.glassfish.jersey.core" % "jersey-common" % "1.2.1", // Required at runtime by javax.ws.rs-api - "com.github.swagger-akka-http" %% "swagger-pekko-http" % "[2.12.0]", // Deprecated in v2.8.0 due to Akka license change to BSL v1.1 + "com.github.swagger-akka-http" %% "swagger-pekko-http" % "[2.14.0]", "com.github.swagger-akka-http" %% "swagger-scala-module" % "[2.12.0,)", //"io.swagger.core.v3" % "swagger-core-jakarta" % "[2.1.12]", // Version 2.1.13+ requires newer versions of slick and slick-hikaricp //"io.swagger.core.v3" % "swagger-jaxrs2-jakarta" % "[2.1.12]", // Version 2.1.13+ requires newer versions of slick and slick-hikaricp