Browse Source

Add sources and Javadoc to the build

pull/1111/head
Sebastien Deleuze 9 years ago
parent
commit
22bea1da01
  1. 24
      spring-web-reactive/build.gradle
  2. 3
      spring-web-reactive/src/main/java/org/springframework/core/codec/support/JsonObjectDecoder.java
  3. 6
      spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java

24
spring-web-reactive/build.gradle

@ -37,6 +37,27 @@ ext { @@ -37,6 +37,27 @@ ext {
jettyVersion = '9.3.5.v20151012'
}
javadoc {
options.author = true
options.addStringOption('Xdoclint:none', '-quiet')
options.links 'http://docs.oracle.com/javase/8/docs/api/'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
dependencies {
compile "org.springframework:spring-core:${springVersion}"
compile "org.springframework:spring-web:${springVersion}"
@ -66,6 +87,9 @@ dependencies { @@ -66,6 +87,9 @@ dependencies {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile("org.hamcrest:hamcrest-all:1.3")
// Needed to run Javadoc without error
optional("org.apache.httpcomponents:httpclient:4.5.1")
}

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/JsonObjectDecoder.java

@ -39,8 +39,7 @@ import org.springframework.util.MimeType; @@ -39,8 +39,7 @@ import org.springframework.util.MimeType;
* is considered a JSON object/array if it contains a matching number of opening
* and closing braces/brackets.
*
* Based on <a href=https://github.com/netty/netty/blob/master/codec/src/main/java/io/netty/handler/codec/json/JsonObjectDecoder.java">
* Netty {@code JsonObjectDecoder}</a>
* Based on <a href="https://github.com/netty/netty/blob/master/codec/src/main/java/io/netty/handler/codec/json/JsonObjectDecoder.java">Netty JsonObjectDecoder</a>
*
* @author Sebastien Deleuze
* @see JsonObjectEncoder

6
spring-web-reactive/src/main/java/org/springframework/web/reactive/DispatcherHandler.java

@ -39,14 +39,14 @@ import org.springframework.web.server.WebServerExchange; @@ -39,14 +39,14 @@ import org.springframework.web.server.WebServerExchange;
* Central dispatcher for HTTP request handlers/controllers. Dispatches to registered
* handlers for processing a web request, providing convenient mapping facilities.
*
* <li>It can use any {@link HandlerMapping} implementation to control the routing of
* <p>It can use any {@link HandlerMapping} implementation to control the routing of
* requests to handler objects. HandlerMapping objects can be defined as beans in
* the application context.
*
* <li>It can use any {@link HandlerAdapter}; this allows for using any handler interface.
* <p>It can use any {@link HandlerAdapter}; this allows for using any handler interface.
* HandlerAdapter objects can be added as beans in the application context.
*
* <li>It can use any {@link HandlerResultHandler}; this allows to process the result of
* <p>It can use any {@link HandlerResultHandler}; this allows to process the result of
* the request handling. HandlerResultHandler objects can be added as beans in the
* application context.
*

Loading…
Cancel
Save