Updated dependencies.

This commit is contained in:
Erik C. Thauvin 2021-05-01 23:17:48 -07:00
parent bd47e55869
commit 8506460961
6 changed files with 11 additions and 14 deletions

View file

@ -180,7 +180,7 @@ Include the following in your `build.gradle` file:
```gradle ```gradle
dependencies { dependencies {
implementation 'net.thauvin.erik.httpstatus:httpstatus:1.0.5' implementation 'net.thauvin.erik.httpstatus:httpstatus:1.0.6'
} }
``` ```
@ -190,7 +190,7 @@ or as a Maven artifact:
<dependency> <dependency>
<groupId>net.thauvin.erik.httpstatus</groupId> <groupId>net.thauvin.erik.httpstatus</groupId>
<artifactId>httpstatus</artifactId> <artifactId>httpstatus</artifactId>
<version>1.0.5</version> <version>1.0.6</version>
</dependency> </dependency>
``` ```
@ -198,7 +198,7 @@ or as a Maven artifact:
You can query the reason phrase for status codes as follows: You can query the reason phrase for status codes as follows:
```sh ```sh
$ java -jar httpstatus-1.0.5.jar 404 500 $ java -jar httpstatus-1.0.6.jar 404 500
404: Not Found 404: Not Found
500: Internal Server Error 500: Internal Server Error
``` ```
@ -206,7 +206,7 @@ $ java -jar httpstatus-1.0.5.jar 404 500
If no status code is specified, all will be printed: If no status code is specified, all will be printed:
```sh ```sh
$ java -jar httpstatus-1.0.5.jar $ java -jar httpstatus-1.0.6.jar
100: Continue 100: Continue
101: Switching Protocols 101: Switching Protocols
102: Processing 102: Processing

View file

@ -9,8 +9,8 @@ plugins {
id 'pmd' id 'pmd'
id 'com.github.ben-manes.versions' version '0.38.0' id 'com.github.ben-manes.versions' version '0.38.0'
id 'net.thauvin.erik.gradle.semver' version '1.0.4' id 'net.thauvin.erik.gradle.semver' version '1.0.4'
id 'com.github.spotbugs' version '4.7.0' id 'com.github.spotbugs' version '4.7.1'
id 'org.sonarqube' version '3.1.1' id 'org.sonarqube' version '3.2.0'
} }
import com.github.spotbugs.snom.SpotBugsTask import com.github.spotbugs.snom.SpotBugsTask
@ -34,7 +34,7 @@ mainClassName = 'net.thauvin.erik.httpstatus.Reasons'
ext { ext {
versions = [ versions = [
spotbugs: '4.2.2' spotbugs: '4.2.3'
] ]
} }
@ -161,7 +161,7 @@ signing {
} }
task copyToDeploy(type: Copy) { task copyToDeploy(type: Copy) {
from(configurations.runtime) { from(configurations.runtimeClasspath) {
exclude 'javax.servlet-api-*.jar' exclude 'javax.servlet-api-*.jar'
exclude 'jsp-api-*.jar' exclude 'jsp-api-*.jar'
} }

View file

@ -237,7 +237,6 @@
<rule ref="category/java/performance.xml/AvoidArrayLoops"/> <rule ref="category/java/performance.xml/AvoidArrayLoops"/>
<rule ref="category/java/performance.xml/AvoidFileStream"/> <rule ref="category/java/performance.xml/AvoidFileStream"/>
<rule ref="category/java/performance.xml/AvoidInstantiatingObjectsInLoops"/> <rule ref="category/java/performance.xml/AvoidInstantiatingObjectsInLoops"/>
<rule ref="category/java/performance.xml/AvoidUsingShortType"/>
<rule ref="category/java/performance.xml/BigIntegerInstantiation"/> <rule ref="category/java/performance.xml/BigIntegerInstantiation"/>
<rule ref="category/java/performance.xml/BooleanInstantiation"/> <rule ref="category/java/performance.xml/BooleanInstantiation"/>
<rule ref="category/java/performance.xml/ByteInstantiation"/> <rule ref="category/java/performance.xml/ByteInstantiation"/>
@ -250,7 +249,6 @@
<rule ref="category/java/performance.xml/LongInstantiation"/> <rule ref="category/java/performance.xml/LongInstantiation"/>
<rule ref="category/java/performance.xml/OptimizableToArrayCall"/> <rule ref="category/java/performance.xml/OptimizableToArrayCall"/>
<rule ref="category/java/performance.xml/RedundantFieldInitializer"/> <rule ref="category/java/performance.xml/RedundantFieldInitializer"/>
<rule ref="category/java/performance.xml/SimplifyStartsWith"/>
<rule ref="category/java/performance.xml/ShortInstantiation"/> <rule ref="category/java/performance.xml/ShortInstantiation"/>
<rule ref="category/java/performance.xml/StringInstantiation"/> <rule ref="category/java/performance.xml/StringInstantiation"/>
<rule ref="category/java/performance.xml/StringToString"/> <rule ref="category/java/performance.xml/StringToString"/>

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View file

@ -87,7 +87,6 @@ public final class Reasons {
* @param statusCode The status code. * @param statusCode The status code.
* @return The reason phrase, or <code>null</code>. * @return The reason phrase, or <code>null</code>.
*/ */
@SuppressWarnings({"WeakerAccess"})
public static String getReasonPhrase(final String statusCode) { public static String getReasonPhrase(final String statusCode) {
return REASON_PHRASES.get(statusCode); return REASON_PHRASES.get(statusCode);
} }
@ -118,4 +117,4 @@ public final class Reasons {
System.out.println("Total: " + REASON_PHRASES.size()); System.out.println("Total: " + REASON_PHRASES.size());
} }
} }
} }

View file

@ -1,5 +1,5 @@
#Generated by the Semver Plugin for Gradle #Generated by the Semver Plugin for Gradle
#Sun May 05 23:59:32 PDT 2019 #Sat May 01 23:16:37 PDT 2021
version.buildmeta= version.buildmeta=
version.major=1 version.major=1
version.minor=0 version.minor=0