Skip to content

Commit a9a3e55

Browse files
committed
feat: enable JDK 21 virtual threads for Spring Boot itself and move to Undertow servlet container.
1 parent 4e2e37a commit a9a3e55

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

.fossa.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 3
2+
project:
3+
name: cardano-rosetta-java
4+
ignore:
5+
- jakarta.servlet:jakarta.servlet-api
6+
- jakarta.websocket:jakarta.websocket-api
7+
- jakarta.websocket:jakarta.websocket-client-api
8+
- org.jboss.threads:jboss-threads
9+
10+
policies:
11+
- id: ignore-jakarta
12+
type: license
13+
description: "Ignore flagged Jakarta dependencies"
14+
conditions:
15+
license:
16+
- "GPL-2.0-with-classpath-exception"
17+
- "LGPL-2.1-or-later"
18+
actions:
19+
- allow

.github/workflows/fossa-scan.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ jobs:
99
fossa-scan:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
12+
- name: "Checkout Code"
13+
uses: actions/checkout@v3
14+
15+
- name: "Run FOSSA Scan"
16+
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
1417
with:
1518
api-key: ${{secrets.FOSSA_API_KEY}}
16-
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
19+
config: .fossa.yml
20+
21+
- name: "Run FOSSA Test"
22+
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
1723
with:
1824
api-key: ${{secrets.FOSSA_API_KEY}}
19-
run-tests: true
25+
run-tests: true
26+
config: .fossa.yml

api/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
<dependency>
3434
<groupId>org.springframework.boot</groupId>
3535
<artifactId>spring-boot-starter-web</artifactId>
36+
<exclusions>
37+
<exclusion>
38+
<groupId>org.springframework.boot</groupId>
39+
<artifactId>spring-boot-starter-tomcat</artifactId>
40+
</exclusion>
41+
</exclusions>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-starter-undertow</artifactId>
3646
</dependency>
3747
<dependency>
3848
<groupId>org.springframework.boot</groupId>

api/src/main/resources/config/application-online.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
spring:
2+
threads:
3+
virtual:
4+
enabled: true
5+
26
datasource:
37
username: ${DB_USER:rosetta_db_admin}
48
password: ${DB_SECRET:weakpwd#123_d}

0 commit comments

Comments
 (0)