2017-08-21 20:41:55 +08:00
|
|
|
description = "Spring Web"
|
|
|
|
|
2019-08-21 02:26:43 +08:00
|
|
|
apply plugin: "kotlin"
|
2020-01-27 20:59:16 +08:00
|
|
|
apply plugin: "kotlinx-serialization"
|
2019-08-21 02:26:43 +08:00
|
|
|
|
2017-08-21 20:41:55 +08:00
|
|
|
dependencies {
|
2021-05-22 03:16:30 +08:00
|
|
|
api(project(":spring-beans"))
|
|
|
|
api(project(":spring-core"))
|
2021-03-23 05:18:48 +08:00
|
|
|
compileOnly("io.projectreactor.tools:blockhound")
|
2017-08-21 20:41:55 +08:00
|
|
|
optional(project(":spring-aop"))
|
|
|
|
optional(project(":spring-context"))
|
|
|
|
optional(project(":spring-oxm"))
|
2021-09-17 15:14:07 +08:00
|
|
|
optional("jakarta.servlet:jakarta.servlet-api")
|
|
|
|
optional("jakarta.servlet.jsp:jakarta.servlet.jsp-api")
|
|
|
|
optional("jakarta.el:jakarta.el-api")
|
|
|
|
optional("jakarta.faces:jakarta.faces-api")
|
|
|
|
optional("jakarta.json.bind:jakarta.json.bind-api")
|
|
|
|
optional("jakarta.validation:jakarta.validation-api")
|
|
|
|
optional("jakarta.xml.bind:jakarta.xml.bind-api")
|
2020-05-11 15:40:01 +08:00
|
|
|
optional("io.reactivex.rxjava3:rxjava")
|
2019-08-15 23:22:52 +08:00
|
|
|
optional("io.netty:netty-buffer")
|
|
|
|
optional("io.netty:netty-handler")
|
|
|
|
optional("io.netty:netty-codec-http") // Until Netty4ClientHttpRequest is removed
|
|
|
|
optional("io.netty:netty-transport") // Until Netty4ClientHttpRequest is removed
|
2020-08-01 17:49:15 +08:00
|
|
|
optional("io.projectreactor.netty:reactor-netty-http")
|
Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5DataBuffer. DataBufferUtils::release can now
handle CloseableDataBuffer as well as PooledDataBuffer.
- PooledDataBuffer::touch has been moved into a separate interface:
TouchableDataBuffer, which is implemented by Netty5DataBuffer.
- The capacity of DataBuffers can no longer be reduced, they can only
grow larger. As a consequence, DataBuffer::capacity(int) has been
deprecated, but ensureWritable (formally ensureCapacity) still exists.
- DataBuffer::slice and retainedSlice have been deprecated in favor of
split, a new method that ensures that memory regions do not overlap.
- DataBuffer::asByteBuffer has been deprecated in favor of toByteBuffer,
a new method that returns a copy, instead of shared data.
- DataBufferFactory::allocateBuffer has been deprecated in favor of
allocateBuffer(int).
Closes gh-28874
2022-07-27 21:24:14 +08:00
|
|
|
optional("io.netty:netty5-buffer:5.0.0.Alpha4")
|
2019-08-27 03:13:12 +08:00
|
|
|
optional("io.undertow:undertow-core")
|
|
|
|
optional("org.apache.tomcat.embed:tomcat-embed-core")
|
2018-07-18 20:05:45 +08:00
|
|
|
optional("org.eclipse.jetty:jetty-server") {
|
2021-09-17 15:14:07 +08:00
|
|
|
exclude group: "jakarta.servlet", module: "jakarta.servlet-api"
|
2017-08-21 20:41:55 +08:00
|
|
|
}
|
2018-07-18 20:05:45 +08:00
|
|
|
optional("org.eclipse.jetty:jetty-servlet") {
|
2021-09-17 15:14:07 +08:00
|
|
|
exclude group: "jakarta.servlet", module: "jakarta.servlet-api"
|
2017-09-23 17:28:19 +08:00
|
|
|
}
|
2019-08-27 03:13:12 +08:00
|
|
|
optional("org.eclipse.jetty:jetty-reactive-httpclient")
|
2020-10-16 18:20:15 +08:00
|
|
|
optional('org.apache.httpcomponents.client5:httpclient5')
|
|
|
|
optional('org.apache.httpcomponents.core5:httpcore5-reactive')
|
2019-08-27 03:13:12 +08:00
|
|
|
optional("org.apache.httpcomponents:httpclient")
|
2021-12-14 16:46:08 +08:00
|
|
|
optional("com.squareup.okhttp3:okhttp")
|
2019-08-27 03:13:12 +08:00
|
|
|
optional("com.fasterxml.woodstox:woodstox-core")
|
|
|
|
optional("com.fasterxml:aalto-xml")
|
|
|
|
optional("com.fasterxml.jackson.core:jackson-databind")
|
|
|
|
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
|
|
|
|
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-smile")
|
|
|
|
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-cbor")
|
|
|
|
optional("com.google.code.gson:gson")
|
|
|
|
optional("com.google.protobuf:protobuf-java-util")
|
|
|
|
optional("com.googlecode.protobuf-java-format:protobuf-java-format")
|
|
|
|
optional("com.rometools:rome")
|
2022-02-05 04:01:02 +08:00
|
|
|
optional("org.apache.groovy:groovy")
|
2019-07-19 16:20:35 +08:00
|
|
|
optional("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
optional("org.jetbrains.kotlin:kotlin-stdlib")
|
2020-10-09 18:41:52 +08:00
|
|
|
optional("org.jetbrains.kotlinx:kotlinx-serialization-json")
|
2021-05-22 03:16:30 +08:00
|
|
|
testImplementation(testFixtures(project(":spring-beans")))
|
|
|
|
testImplementation(testFixtures(project(":spring-context")))
|
|
|
|
testImplementation(testFixtures(project(":spring-core")))
|
|
|
|
testImplementation("io.projectreactor:reactor-test")
|
|
|
|
testImplementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8")
|
|
|
|
testImplementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
|
|
|
|
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
|
|
testImplementation("org.apache.tomcat:tomcat-util")
|
|
|
|
testImplementation("org.apache.tomcat.embed:tomcat-embed-core")
|
|
|
|
testImplementation("org.eclipse.jetty:jetty-server")
|
|
|
|
testImplementation("org.eclipse.jetty:jetty-servlet")
|
|
|
|
testImplementation("com.squareup.okhttp3:mockwebserver")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
testImplementation("org.skyscreamer:jsonassert")
|
|
|
|
testImplementation("org.xmlunit:xmlunit-assertj")
|
|
|
|
testImplementation("org.xmlunit:xmlunit-matchers")
|
|
|
|
testImplementation("io.projectreactor.tools:blockhound")
|
2021-09-17 15:14:07 +08:00
|
|
|
testRuntimeOnly("com.sun.mail:jakarta.mail")
|
2021-05-22 03:16:30 +08:00
|
|
|
testRuntimeOnly("com.sun.xml.bind:jaxb-core")
|
|
|
|
testRuntimeOnly("com.sun.xml.bind:jaxb-impl")
|
2021-09-17 15:14:07 +08:00
|
|
|
testRuntimeOnly("jakarta.json:jakarta.json-api")
|
|
|
|
testRuntimeOnly("org.eclipse:yasson")
|
|
|
|
testFixturesApi("jakarta.servlet:jakarta.servlet-api")
|
2019-12-31 21:58:51 +08:00
|
|
|
testFixturesApi("org.junit.jupiter:junit-jupiter-api")
|
|
|
|
testFixturesApi("org.junit.jupiter:junit-jupiter-params")
|
|
|
|
testFixturesImplementation("io.projectreactor:reactor-test")
|
|
|
|
testFixturesImplementation("org.assertj:assertj-core")
|
2022-06-16 09:21:41 +08:00
|
|
|
testFixturesImplementation("org.bouncycastle:bcpkix-jdk18on") {
|
2020-05-25 23:30:27 +08:00
|
|
|
because("needed by Netty's SelfSignedCertificate on JDK 15+")
|
|
|
|
}
|
2021-09-17 19:51:51 +08:00
|
|
|
testFixturesImplementation("org.eclipse.jetty.websocket:websocket-jetty-server")
|
2017-09-23 17:28:19 +08:00
|
|
|
}
|