mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-05-04 05:01:06 +01:00
7db43ef820
This commit moves the spring-web dependency from implementation to optional. It also adds an api dependency to spring-web in the rsocket starter. The reasoning behind this change is that RSocket can be used without spring-web, and we want to make sure that consumers of the dependency can achieve that goal, as they were able to in previous versions. However, we believe that most RSocket-based applications need spring-web as, without it, only the simple and not efficient implementation of RouterMatcher is available. With the addition of exception handling using ControllerAdvice, this change makes also sure that it works out of the box with the starter. Closes gh-47409
34 lines
1.1 KiB
Groovy
34 lines
1.1 KiB
Groovy
/*
|
|
* Copyright 2012-present the original author or authors.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the License);
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
plugins {
|
|
id "org.springframework.boot.starter"
|
|
}
|
|
|
|
description = "Starter for using RSocket"
|
|
|
|
dependencies {
|
|
api(project(":starter:spring-boot-starter"))
|
|
api(project(":starter:spring-boot-starter-jackson"))
|
|
api(project(":starter:spring-boot-starter-reactor-netty"))
|
|
|
|
api(project(":module:spring-boot-rsocket"))
|
|
|
|
api("io.rsocket:rsocket-transport-netty")
|
|
api("org.springframework:spring-web")
|
|
api("tools.jackson.dataformat:jackson-dataformat-cbor")
|
|
}
|