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
63 lines
2.8 KiB
Groovy
63 lines
2.8 KiB
Groovy
description = "Spring WebFlux"
|
|
|
|
apply plugin: "kotlin"
|
|
|
|
dependencies {
|
|
api(project(":spring-beans"))
|
|
api(project(":spring-core"))
|
|
api(project(":spring-web"))
|
|
api("io.projectreactor:reactor-core")
|
|
optional(project(":spring-context"))
|
|
optional(project(":spring-context-support")) // for FreeMarker support
|
|
optional("jakarta.servlet:jakarta.servlet-api")
|
|
optional("jakarta.websocket:jakarta.websocket-api")
|
|
optional("org.webjars:webjars-locator-core")
|
|
optional("org.freemarker:freemarker")
|
|
optional("com.fasterxml.jackson.core:jackson-databind")
|
|
optional("com.fasterxml.jackson.dataformat:jackson-dataformat-smile")
|
|
optional("io.projectreactor.netty:reactor-netty-http")
|
|
optional("org.apache.tomcat:tomcat-websocket")
|
|
optional("org.eclipse.jetty.websocket:websocket-jetty-server") {
|
|
exclude group: "jakarta.servlet", module: "jakarta.servlet-api"
|
|
}
|
|
optional("org.eclipse.jetty.websocket:websocket-jetty-client")
|
|
optional("io.undertow:undertow-websockets-jsr-jakarta")
|
|
optional("org.apache.httpcomponents:httpclient")
|
|
optional("org.jetbrains.kotlin:kotlin-reflect")
|
|
optional("org.jetbrains.kotlin:kotlin-stdlib")
|
|
optional("com.google.protobuf:protobuf-java-util")
|
|
optional("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
|
|
testImplementation(testFixtures(project(":spring-beans")))
|
|
testImplementation(testFixtures(project(":spring-core")))
|
|
testImplementation(testFixtures(project(":spring-web")))
|
|
testImplementation("jakarta.xml.bind:jakarta.xml.bind-api")
|
|
testImplementation("com.fasterxml:aalto-xml")
|
|
testImplementation("org.hibernate:hibernate-validator")
|
|
testImplementation("jakarta.validation:jakarta.validation-api")
|
|
testImplementation("io.reactivex.rxjava3:rxjava")
|
|
testImplementation("io.projectreactor:reactor-test")
|
|
testImplementation("io.undertow:undertow-core")
|
|
testImplementation("org.apache.tomcat.embed:tomcat-embed-core")
|
|
testImplementation("org.apache.tomcat:tomcat-util")
|
|
testImplementation("org.eclipse.jetty:jetty-server")
|
|
testImplementation("org.eclipse.jetty:jetty-servlet")
|
|
testImplementation("org.eclipse.jetty:jetty-reactive-httpclient")
|
|
testImplementation('org.apache.httpcomponents.client5:httpclient5')
|
|
testImplementation('org.apache.httpcomponents.core5:httpcore5-reactive')
|
|
testImplementation("com.squareup.okhttp3:mockwebserver")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-script-runtime")
|
|
testRuntimeOnly("org.jetbrains.kotlin:kotlin-scripting-jsr223")
|
|
testRuntimeOnly("org.jruby:jruby")
|
|
testRuntimeOnly("org.python:jython-standalone")
|
|
testRuntimeOnly("org.webjars:underscorejs")
|
|
testRuntimeOnly("org.glassfish:jakarta.el")
|
|
testRuntimeOnly("com.sun.xml.bind:jaxb-core")
|
|
testRuntimeOnly("com.sun.xml.bind:jaxb-impl")
|
|
testRuntimeOnly("com.sun.activation:jakarta.activation")
|
|
testRuntimeOnly("io.netty:netty5-buffer:5.0.0.Alpha4")
|
|
}
|
|
|
|
test {
|
|
maxParallelForks = 4
|
|
}
|