Upgrade to Spring Framework 5.3.0-SNAPSHOT

This commit also switches to RSocket SNAPSHOTs and updates the
repository configuration to rely on "libs-snapshot", since the RSocket
SNAPSHOTs are mirrored there.

See gh-22640
pull/22643/head
Brian Clozel 4 years ago
parent 7aa093e0ca
commit 6f2098ad71

@ -21,7 +21,7 @@ allprojects {
maven { url "https://repo.spring.io/milestone" } maven { url "https://repo.spring.io/milestone" }
} }
if (version.endsWith('-SNAPSHOT')) { if (version.endsWith('-SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/libs-snapshot" }
} }
} }

@ -9,7 +9,7 @@
<repositories> <repositories>
<repository> <repository>
<id>spring-snapshot</id> <id>spring-snapshot</id>
<url>https://repo.spring.io/snapshot</url> <url>https://repo.spring.io/libs-snapshot</url>
<snapshots> <snapshots>
<enabled>true</enabled> <enabled>true</enabled>
</snapshots> </snapshots>

@ -87,7 +87,7 @@ class RSocketWebSocketNettyRouteProviderTests {
int port = server.getPort(); int port = server.getPort();
RSocketRequester.Builder builder = context.getBean(RSocketRequester.Builder.class); RSocketRequester.Builder builder = context.getBean(RSocketRequester.Builder.class);
return builder.dataMimeType(MediaType.APPLICATION_CBOR) return builder.dataMimeType(MediaType.APPLICATION_CBOR)
.connectWebSocket(URI.create("ws://localhost:" + port + "/rsocket")).block(); .websocket(URI.create("ws://localhost:" + port + "/rsocket"));
} }
@Configuration(proxyBeanMethods = false) @Configuration(proxyBeanMethods = false)

@ -1350,7 +1350,7 @@ bom {
] ]
} }
} }
library("RSocket", "1.0.1") { library("RSocket", "1.1.0-SNAPSHOT") {
group("io.rsocket") { group("io.rsocket") {
imports = [ imports = [
"rsocket-bom" "rsocket-bom"
@ -1570,7 +1570,7 @@ bom {
] ]
} }
} }
library("Spring Framework", "5.3.0-M1") { library("Spring Framework", "5.3.0-SNAPSHOT") {
group("org.springframework") { group("org.springframework") {
imports = [ imports = [
"spring-framework-bom" "spring-framework-bom"

@ -76,7 +76,7 @@ class NettyRSocketServerFactoryTests {
} }
} }
if (this.requester != null) { if (this.requester != null) {
this.requester.rsocket().dispose(); this.requester.rsocketClient().dispose();
} }
} }
@ -166,13 +166,13 @@ class NettyRSocketServerFactoryTests {
private RSocketRequester createRSocketTcpClient() { private RSocketRequester createRSocketTcpClient() {
Assertions.assertThat(this.server).isNotNull(); Assertions.assertThat(this.server).isNotNull();
InetSocketAddress address = this.server.address(); InetSocketAddress address = this.server.address();
return createRSocketRequesterBuilder().connectTcp(address.getHostString(), address.getPort()).block(); return createRSocketRequesterBuilder().tcp(address.getHostString(), address.getPort());
} }
private RSocketRequester createRSocketWebSocketClient() { private RSocketRequester createRSocketWebSocketClient() {
Assertions.assertThat(this.server).isNotNull(); Assertions.assertThat(this.server).isNotNull();
InetSocketAddress address = this.server.address(); InetSocketAddress address = this.server.address();
return createRSocketRequesterBuilder().connect(WebsocketClientTransport.create(address)).block(); return createRSocketRequesterBuilder().transport(WebsocketClientTransport.create(address));
} }
private RSocketRequester.Builder createRSocketRequesterBuilder() { private RSocketRequester.Builder createRSocketRequesterBuilder() {

@ -16,8 +16,6 @@
package smoketest.rsocket; package smoketest.rsocket;
import java.time.Duration;
import io.rsocket.metadata.WellKnownMimeType; import io.rsocket.metadata.WellKnownMimeType;
import org.assertj.core.api.Assertions; import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -43,7 +41,7 @@ public class SampleRSocketApplicationTests {
@Test @Test
void unauthenticatedAccessToRSocketEndpoint() { void unauthenticatedAccessToRSocketEndpoint() {
RSocketRequester requester = this.builder.connectTcp("localhost", this.port).block(Duration.ofSeconds(5)); RSocketRequester requester = this.builder.tcp("localhost", this.port);
Mono<Project> result = requester.route("find.project.spring-boot").retrieveMono(Project.class); Mono<Project> result = requester.route("find.project.spring-boot").retrieveMono(Project.class);
StepVerifier.create(result).expectErrorMessage("Access Denied").verify(); StepVerifier.create(result).expectErrorMessage("Access Denied").verify();
} }
@ -54,7 +52,7 @@ public class SampleRSocketApplicationTests {
.rsocketStrategies((builder) -> builder.encoder(new SimpleAuthenticationEncoder())) .rsocketStrategies((builder) -> builder.encoder(new SimpleAuthenticationEncoder()))
.setupMetadata(new UsernamePasswordMetadata("user", "password"), .setupMetadata(new UsernamePasswordMetadata("user", "password"),
MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString())) MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString()))
.connectTcp("localhost", this.port).block(Duration.ofSeconds(5)); .tcp("localhost", this.port);
Mono<Project> result = requester.route("find.project.spring-boot").retrieveMono(Project.class); Mono<Project> result = requester.route("find.project.spring-boot").retrieveMono(Project.class);
StepVerifier.create(result) StepVerifier.create(result)
.assertNext((project) -> Assertions.assertThat(project.getName()).isEqualTo("spring-boot")) .assertNext((project) -> Assertions.assertThat(project.getName()).isEqualTo("spring-boot"))

Loading…
Cancel
Save