Skip to content

Commit 01036ea

Browse files
chore(dependency update): update dependencies and migrate wiremock to latest version
1 parent b2c5502 commit 01036ea

File tree

48 files changed

+456
-403
lines changed

Some content is hidden

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

48 files changed

+456
-403
lines changed

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
java-version: 21
2525
settings-path: ${{ github.workspace }}
2626
- name: Build Project
27-
run: ./mvnw -B --no-transfer-progress package -Dlicense.skip=true
27+
run: ./mvnw -B --no-transfer-progress install -Prelease -Dlicense.skip=true

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
1818
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

components/api/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<dependency>
2525
<groupId>com.squareup.okhttp3</groupId>
2626
<artifactId>okhttp</artifactId>
27-
<version>4.9.3</version>
2827
</dependency>
2928

3029
<dependency>
@@ -58,11 +57,6 @@
5857
<artifactId>guava</artifactId>
5958
</dependency>
6059

61-
<dependency>
62-
<groupId>com.google.code.findbugs</groupId>
63-
<artifactId>annotations</artifactId>
64-
</dependency>
65-
6660
<dependency>
6761
<groupId>com.fasterxml.uuid</groupId>
6862
<artifactId>java-uuid-generator</artifactId>

components/client/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
<artifactId>styx-api</artifactId>
3838
</dependency>
3939

40-
<dependency>
41-
<groupId>com.google.code.findbugs</groupId>
42-
<artifactId>annotations</artifactId>
43-
</dependency>
44-
4540
<dependency>
4641
<groupId>io.dropwizard.metrics</groupId>
4742
<artifactId>metrics-json</artifactId>

components/client/src/main/java/com/hotels/styx/client/HttpClient.java

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (C) 2013-2021 Expedia Inc.
2+
Copyright (C) 2013-2024 Expedia Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* A Styx HTTP client interface.
27-
*
27+
* <p>
2828
* This interface offers a fluent interface to build and configure HTTP
2929
* request transactions from a client instance. The requests can be consumed
3030
* either aggregated {@link HttpResponse} or streaming {@link LiveHttpRequest}
@@ -33,29 +33,16 @@
3333
public interface HttpClient {
3434

3535
/**
36-
* Sends a HTTP request message using this client.
37-
*
38-
* @deprecated use {@link #send} instead.
39-
*
40-
* @param request a full HTTP request object
41-
* @return a future of full HTTP request object
42-
*/
43-
@Deprecated
44-
default CompletableFuture<HttpResponse> sendRequest(HttpRequest request) {
45-
return send(request);
46-
}
47-
48-
/**
49-
* Sends a HTTP request message using this client.
36+
* Sends an HTTP request message using this client.
5037
*
5138
* @param request a full HTTP request object
5239
* @return a future of full HTTP request object
5340
*/
5441
CompletableFuture<HttpResponse> send(HttpRequest request);
5542

5643
/**
57-
* A HTTP request transaction.
58-
*
44+
* An HTTP request transaction.
45+
* <p>
5946
* This interface allows client attributes and context to be customised
6047
* for each request without having to rely on configured default values
6148
* in the client.
@@ -80,7 +67,7 @@ interface Transaction {
8067

8168
/**
8269
* Converts the transaction object to streaming transaction.
83-
*
70+
* <p>
8471
* A call to {@code streaming()} converts this {@link Transaction} object to
8572
* a {@link StreamingTransaction}. This allows responses to be consumed
8673
* in streaming responses.
@@ -90,7 +77,7 @@ interface Transaction {
9077
StreamingTransaction streaming();
9178

9279
/**
93-
* Sends a HTTP request message using this client.
80+
* Sends an HTTP request message using this client.
9481
*
9582
* @param request a full HTTP request object
9683
* @return a future of full HTTP request object
@@ -100,7 +87,7 @@ interface Transaction {
10087

10188
/**
10289
* A streaming HTTP request transaction.
103-
*
90+
* <p>
10491
* This interface allows the response object to be consumed in a streaming
10592
* fashion instead of being aggregated into a HttpResponse.
10693
*/

components/client/src/test/integration/scala/com/hotels/styx/client/OriginSupport.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (C) 2013-2022 Expedia Inc.
2+
Copyright (C) 2013-2024 Expedia Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

components/client/src/test/unit/java/com/hotels/styx/client/netty/connectionpool/NettyConnectionFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (C) 2013-2021 Expedia Inc.
2+
Copyright (C) 2013-2024 Expedia Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
2020
import com.hotels.styx.client.Connection;
2121
import com.hotels.styx.client.ConnectionSettings;
2222
import com.hotels.styx.support.server.FakeHttpServer;
23+
import com.hotels.styx.support.server.UrlMatchingStrategies;
2324
import io.netty.channel.Channel;
2425
import io.netty.channel.ChannelHandlerContext;
2526
import io.netty.channel.SimpleChannelInboundHandler;

components/proxy/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@
6262
<artifactId>guava</artifactId>
6363
</dependency>
6464

65-
<dependency>
66-
<groupId>com.google.code.findbugs</groupId>
67-
<artifactId>annotations</artifactId>
68-
</dependency>
69-
7065
<!--For logback.xml-->
7166
<dependency>
7267
<groupId>org.codehaus.janino</groupId>

components/proxy/src/test/java/com/hotels/styx/admin/handlers/ServiceProviderHandlerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (C) 2013-2021 Expedia Inc.
2+
Copyright (C) 2013-2024 Expedia Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -17,13 +17,13 @@
1717

1818
import com.fasterxml.jackson.databind.JsonNode;
1919
import com.fasterxml.jackson.databind.ObjectMapper;
20+
import com.hotels.styx.StyxObjectRecord;
2021
import com.hotels.styx.api.HttpRequest;
2122
import com.hotels.styx.api.HttpResponse;
2223
import com.hotels.styx.api.extension.service.spi.StyxService;
2324
import com.hotels.styx.routing.config.StyxObjectDefinition;
2425
import com.hotels.styx.routing.db.StyxObjectStore;
25-
import com.hotels.styx.StyxObjectRecord;
26-
import org.apache.commons.lang.StringUtils;
26+
import org.apache.commons.lang3.StringUtils;
2727
import org.junit.jupiter.api.Test;
2828
import reactor.core.publisher.Mono;
2929

@@ -35,10 +35,10 @@
3535
import java.util.Optional;
3636
import java.util.stream.Collectors;
3737

38-
import static com.hotels.styx.support.Support.requestContext;
3938
import static com.hotels.styx.api.HttpResponseStatus.NOT_FOUND;
4039
import static com.hotels.styx.api.HttpResponseStatus.NO_CONTENT;
4140
import static com.hotels.styx.api.HttpResponseStatus.OK;
41+
import static com.hotels.styx.support.Support.requestContext;
4242
import static java.nio.charset.StandardCharsets.UTF_8;
4343
import static org.hamcrest.MatcherAssert.assertThat;
4444
import static org.hamcrest.Matchers.containsInAnyOrder;

components/proxy/src/test/java/com/hotels/styx/proxy/StyxProxyTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (C) 2013-2021 Expedia Inc.
2+
Copyright (C) 2013-2024 Expedia Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -139,6 +139,6 @@ private HttpResponse get(String uri) {
139139
}
140140

141141
private HttpResponse execute(HttpRequest request) {
142-
return await(client.sendRequest(request));
142+
return await(client.send(request));
143143
}
144144
}

0 commit comments

Comments
 (0)