Skip to content

Commit fdf7354

Browse files
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 5d27d58 + 3e5663d commit fdf7354

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2718
-344
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ marketing_diagram_generation/outputs/*
4040
.specstory
4141
project/project
4242
coursier
43-
metals.sbt
43+
metals.sbt
44+
obp-http4s-runner/src/main/resources/git.properties

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ To compile and run Jetty, install Maven 3, create your configuration in `obp-api
6767
mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api
6868
```
6969

70+
### Running http4s server (obp-http4s-runner)
71+
72+
To run the API using the http4s server (without Jetty), use the `obp-http4s-runner` module from the project root:
73+
74+
```sh
75+
MAVEN_OPTS="-Xms3G -Xmx6G -XX:MaxMetaspaceSize=2G" mvn -pl obp-http4s-runner -am clean package -DskipTests=true -Dmaven.test.skip=true && \
76+
java -jar obp-http4s-runner/target/obp-http4s-runner.jar
77+
```
78+
79+
The http4s server binds to `http4s.host` / `http4s.port` as configured in your props file (defaults are `127.0.0.1` and `8181`).
80+
7081
### ZED IDE Setup
7182

7283
For ZED IDE users, we provide a complete development environment with Scala language server support:

obp-api/pom.xml

Lines changed: 18 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -23,52 +23,6 @@
2323
<webXmlPath>src/main/resources/web.xml</webXmlPath>
2424
</properties>
2525
</profile>
26-
<profile>
27-
<id>http4s-jar</id>
28-
<build>
29-
<plugins>
30-
<plugin>
31-
<groupId>org.apache.maven.plugins</groupId>
32-
<artifactId>maven-assembly-plugin</artifactId>
33-
<version>3.6.0</version>
34-
<configuration>
35-
<appendAssemblyId>false</appendAssemblyId>
36-
<finalName>${project.artifactId}-http4s</finalName>
37-
<archive>
38-
<manifest>
39-
<mainClass>bootstrap.http4s.Http4sServer</mainClass>
40-
</manifest>
41-
</archive>
42-
<descriptorRefs>
43-
<descriptorRef>jar-with-dependencies</descriptorRef>
44-
</descriptorRefs>
45-
<dependencySets>
46-
<dependencySet>
47-
<outputDirectory>/</outputDirectory>
48-
<unpack>true</unpack>
49-
<scope>runtime</scope>
50-
</dependencySet>
51-
</dependencySets>
52-
<fileSets>
53-
<fileSet>
54-
<directory>${project.build.outputDirectory}</directory>
55-
<outputDirectory>/</outputDirectory>
56-
</fileSet>
57-
</fileSets>
58-
</configuration>
59-
<executions>
60-
<execution>
61-
<id>http4s-fat-jar</id>
62-
<phase>package</phase>
63-
<goals>
64-
<goal>single</goal>
65-
</goals>
66-
</execution>
67-
</executions>
68-
</plugin>
69-
</plugins>
70-
</build>
71-
</profile>
7226
</profiles>
7327
<pluginRepositories>
7428
<pluginRepository>
@@ -83,7 +37,8 @@
8337
<groupId>com.tesobe</groupId>
8438
<artifactId>obp-commons</artifactId>
8539
</dependency>
86-
<!--embed akka adapter start-->
40+
<!--embed akka adapter start - COMMENTED OUT FOR PEKKO MIGRATION-->
41+
<!-- TODO: Find or create Pekko equivalent for adapter-akka-commons
8742
<dependency>
8843
<groupId>com.github.OpenBankProject.OBP-Adapter-Akka-SpringBoot</groupId>
8944
<artifactId>adapter-akka-commons</artifactId>
@@ -95,6 +50,7 @@
9550
</exclusion>
9651
</exclusions>
9752
</dependency>
53+
-->
9854
<!--embed akka adapter end-->
9955
<dependency>
10056
<groupId>com.github.everit-org.json-schema</groupId>
@@ -288,21 +244,21 @@
288244
<artifactId>signpost-commonshttp4</artifactId>
289245
<version>1.2.1.2</version>
290246
</dependency>
291-
<!-- https://mvnrepository.com/artifact/com.typesafe.akka/akka-http-core -->
247+
<!-- https://mvnrepository.com/artifact/org.apache.pekko/pekko-http-core -->
292248
<dependency>
293-
<groupId>com.typesafe.akka</groupId>
294-
<artifactId>akka-http-core_${scala.version}</artifactId>
295-
<version>10.1.6</version>
249+
<groupId>org.apache.pekko</groupId>
250+
<artifactId>pekko-http-core_${scala.version}</artifactId>
251+
<version>1.1.0</version>
296252
</dependency>
297253
<dependency>
298-
<groupId>com.typesafe.akka</groupId>
299-
<artifactId>akka-actor_${scala.version}</artifactId>
300-
<version>${akka.version}</version>
254+
<groupId>org.apache.pekko</groupId>
255+
<artifactId>pekko-actor_${scala.version}</artifactId>
256+
<version>${pekko.version}</version>
301257
</dependency>
302258
<dependency>
303-
<groupId>com.typesafe.akka</groupId>
304-
<artifactId>akka-remote_${scala.version}</artifactId>
305-
<version>${akka.version}</version>
259+
<groupId>org.apache.pekko</groupId>
260+
<artifactId>pekko-remote_${scala.version}</artifactId>
261+
<version>${pekko.version}</version>
306262
</dependency>
307263
<dependency>
308264
<groupId>com.sksamuel.avro4s</groupId>
@@ -316,8 +272,8 @@
316272
</dependency>
317273
<dependency>
318274
<groupId>com.twitter</groupId>
319-
<artifactId>chill-akka_${scala.version}</artifactId>
320-
<version>0.9.1</version>
275+
<artifactId>chill_${scala.version}</artifactId>
276+
<version>0.9.3</version>
321277
</dependency>
322278
<dependency>
323279
<groupId>com.twitter</groupId>
@@ -337,9 +293,9 @@
337293
<version>0.9.3</version>
338294
</dependency>
339295
<dependency>
340-
<groupId>com.typesafe.akka</groupId>
341-
<artifactId>akka-slf4j_${scala.version}</artifactId>
342-
<version>${akka.version}</version>
296+
<groupId>org.apache.pekko</groupId>
297+
<artifactId>pekko-slf4j_${scala.version}</artifactId>
298+
<version>${pekko.version}</version>
343299
</dependency>
344300
<!-- https://mvnrepository.com/artifact/com.github.dwickern/scala-nameof_2.11 -->
345301
<dependency>

0 commit comments

Comments
 (0)