Skip to content

Commit 8e924b9

Browse files
authored
http: use CXF library for Java 8 (#261)
1 parent e10b7f1 commit 8e924b9

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.devcontainer/devcontainer.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
3+
{
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:17",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "none",
11+
"installMaven": "false",
12+
"installGradle": "true"
13+
},
14+
"ghcr.io/devcontainers/features/sshd:1": {
15+
"version": "latest"
16+
}
17+
}
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "java -version",
24+
25+
// Configure tool-specific properties.
26+
// "customizations": {},
27+
28+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
29+
// "remoteUser": "root"
30+
}

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ dependencies {
9999
implementation 'org.apache.maven:maven-artifact:3.9.3'
100100
implementation 'commons-codec:commons-codec:1.16.0'
101101
// for RFC5987 parsing of content-disposition filename*
102-
implementation 'org.apache.cxf:cxf-core:4.0.2'
102+
// 3.5.x is last of Java8 compatible: https://cxf.apache.org/download.html
103+
implementation 'org.apache.cxf:cxf-core:[3.5.6,3.6.0)'
103104
implementation 'org.jetbrains:annotations:24.0.1'
104105

105106
testImplementation 'org.assertj:assertj-core:3.24.2'

0 commit comments

Comments
 (0)