Add sources and Javadoc to the build
This commit is contained in:
parent
89da87a3e5
commit
22bea1da01
|
|
@ -37,6 +37,27 @@ ext {
|
||||||
jettyVersion = '9.3.5.v20151012'
|
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 {
|
dependencies {
|
||||||
compile "org.springframework:spring-core:${springVersion}"
|
compile "org.springframework:spring-core:${springVersion}"
|
||||||
compile "org.springframework:spring-web:${springVersion}"
|
compile "org.springframework:spring-web:${springVersion}"
|
||||||
|
|
@ -66,6 +87,9 @@ dependencies {
|
||||||
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
||||||
}
|
}
|
||||||
testCompile("org.hamcrest:hamcrest-all:1.3")
|
testCompile("org.hamcrest:hamcrest-all:1.3")
|
||||||
|
|
||||||
|
// Needed to run Javadoc without error
|
||||||
|
optional("org.apache.httpcomponents:httpclient:4.5.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,7 @@ import org.springframework.util.MimeType;
|
||||||
* is considered a JSON object/array if it contains a matching number of opening
|
* is considered a JSON object/array if it contains a matching number of opening
|
||||||
* and closing braces/brackets.
|
* 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">
|
* 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>
|
||||||
* Netty {@code JsonObjectDecoder}</a>
|
|
||||||
*
|
*
|
||||||
* @author Sebastien Deleuze
|
* @author Sebastien Deleuze
|
||||||
* @see JsonObjectEncoder
|
* @see JsonObjectEncoder
|
||||||
|
|
|
||||||
|
|
@ -39,14 +39,14 @@ import org.springframework.web.server.WebServerExchange;
|
||||||
* Central dispatcher for HTTP request handlers/controllers. Dispatches to registered
|
* Central dispatcher for HTTP request handlers/controllers. Dispatches to registered
|
||||||
* handlers for processing a web request, providing convenient mapping facilities.
|
* 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
|
* requests to handler objects. HandlerMapping objects can be defined as beans in
|
||||||
* the application context.
|
* 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.
|
* 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
|
* the request handling. HandlerResultHandler objects can be added as beans in the
|
||||||
* application context.
|
* application context.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue