Skip to content

Commit

Permalink
maven configuration a bit improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmugra committed Dec 28, 2020
1 parent 5269c48 commit d968c18
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
16 changes: 14 additions & 2 deletions core/src/main/java/net/cactusthorn/routing/Response.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ private Builder() {
* Sets the status code for this response.
*
* @param statusCode the status code
*
* @return the updated builder
*/
public Builder setStatus(int statusCode) {
statuscode = statusCode;
Expand Down Expand Up @@ -150,6 +152,7 @@ public Builder skipProducer() {
*
* @param cookie the Cookie to return to the client
*
* @return the updated builder
*/
public Builder addCookie(Cookie cookie) {
cookies.add(cookie);
Expand All @@ -165,6 +168,8 @@ public Builder addCookie(Cookie cookie) {
* @param value the header value If it contains octet string, it should be
* encoded according to RFC 2047
* (http://www.ietf.org/rfc/rfc2047.txt)
*
* @return the updated builder
*/
public Builder setHeader(String name, String value) {
List<String> list = new ArrayList<>();
Expand All @@ -182,6 +187,8 @@ public Builder setHeader(String name, String value) {
* should be encoded according to RFC 2047
* (http://www.ietf.org/rfc/rfc2047.txt)
*
* @return the updated builder
*
* @see #setHeader
*/
public Builder addHeader(String name, String value) {
Expand All @@ -201,6 +208,8 @@ public Builder addHeader(String name, String value) {
*
* @param name the name of the header
* @param value the assigned integer value
*
* @return the updated builder
*/
public Builder setIntHeader(String name, int value) {
List<Integer> list = new ArrayList<>();
Expand All @@ -216,6 +225,8 @@ public Builder setIntHeader(String name, int value) {
* @param name the name of the header
* @param value the assigned integer value
*
* @return the updated builder
*
* @see #setIntHeader
*/
public Builder addIntHeader(String name, int value) {
Expand All @@ -238,8 +249,7 @@ public Builder addIntHeader(String name, int value) {
* @param name the name of the header to set
* @param date the assigned date value
*
* @see #containsHeader
* @see #addDateHeader
* @return the updated builder
*/
public Builder setDateHeader(String name, long date) {
List<Long> list = new ArrayList<>();
Expand All @@ -257,6 +267,8 @@ public Builder setDateHeader(String name, long date) {
* @param name the name of the header to set
* @param date the additional date value
*
* @return the updated builder
*
* @see #setDateHeader
*/
public Builder addDateHeader(String name, long date) {
Expand Down
4 changes: 4 additions & 0 deletions demo-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<packaging>jar</packaging>
<name>Routing :: Demo Jetty</name>

<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>

<dependencies>

<dependency>
Expand Down
46 changes: 45 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,29 @@
<artifactId>root</artifactId>
<version>0.23</version>
<packaging>pom</packaging>
<name>Routing :: Root</name>

<name>Routing :: Root</name>
<description>Lightweight Java library for HTTP requests routing</description>
<url>https://github.com/Gmugra/net.cactusthorn.routing</url>

<licenses>
<license>
<name>BSD 3-Clause License</name>
<url>https://github.com/Gmugra/net.cactusthorn.routing/blob/main/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Alexei Khatskevich</name>
</developer>
</developers>

<scm>
<url>https://github.com/Gmugra/net.cactusthorn.routing</url>
<connection>scm:git:https://github.com/Gmugra/net.cactusthorn.routing.git</connection>
</scm>

<properties>

<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
Expand Down Expand Up @@ -42,6 +61,7 @@
<plugin.assembly>3.3.0</plugin.assembly>
<plugin.jacoco>0.8.6</plugin.jacoco>
<plugin.source>3.2.1</plugin.source>
<plugin.javadoc>3.2.0</plugin.javadoc>
<plugin.enforcer>3.0.0-M3</plugin.enforcer>
<plugin.jxr>3.0.0</plugin.jxr>
<plugin.site>3.9.1</plugin.site>
Expand Down Expand Up @@ -252,6 +272,11 @@
<version>${plugin.install}</version>
</plugin>

<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${plugin.javadoc}</version>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${plugin.jar}</version>
Expand Down Expand Up @@ -404,6 +429,25 @@
</build>
</profile>

<profile>
<id>javadoc</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

</project>

0 comments on commit d968c18

Please sign in to comment.