Updated dependencies.
This commit is contained in:
parent
bd47e55869
commit
8506460961
6 changed files with 11 additions and 14 deletions
|
@ -180,7 +180,7 @@ Include the following in your `build.gradle` file:
|
|||
|
||||
```gradle
|
||||
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>
|
||||
<groupId>net.thauvin.erik.httpstatus</groupId>
|
||||
<artifactId>httpstatus</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<version>1.0.6</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
|
@ -198,7 +198,7 @@ or as a Maven artifact:
|
|||
You can query the reason phrase for status codes as follows:
|
||||
|
||||
```sh
|
||||
$ java -jar httpstatus-1.0.5.jar 404 500
|
||||
$ java -jar httpstatus-1.0.6.jar 404 500
|
||||
404: Not Found
|
||||
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:
|
||||
|
||||
```sh
|
||||
$ java -jar httpstatus-1.0.5.jar
|
||||
$ java -jar httpstatus-1.0.6.jar
|
||||
100: Continue
|
||||
101: Switching Protocols
|
||||
102: Processing
|
||||
|
|
|
@ -9,8 +9,8 @@ plugins {
|
|||
id 'pmd'
|
||||
id 'com.github.ben-manes.versions' version '0.38.0'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'com.github.spotbugs' version '4.7.0'
|
||||
id 'org.sonarqube' version '3.1.1'
|
||||
id 'com.github.spotbugs' version '4.7.1'
|
||||
id 'org.sonarqube' version '3.2.0'
|
||||
}
|
||||
|
||||
import com.github.spotbugs.snom.SpotBugsTask
|
||||
|
@ -34,7 +34,7 @@ mainClassName = 'net.thauvin.erik.httpstatus.Reasons'
|
|||
|
||||
ext {
|
||||
versions = [
|
||||
spotbugs: '4.2.2'
|
||||
spotbugs: '4.2.3'
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ signing {
|
|||
}
|
||||
|
||||
task copyToDeploy(type: Copy) {
|
||||
from(configurations.runtime) {
|
||||
from(configurations.runtimeClasspath) {
|
||||
exclude 'javax.servlet-api-*.jar'
|
||||
exclude 'jsp-api-*.jar'
|
||||
}
|
||||
|
|
|
@ -237,7 +237,6 @@
|
|||
<rule ref="category/java/performance.xml/AvoidArrayLoops"/>
|
||||
<rule ref="category/java/performance.xml/AvoidFileStream"/>
|
||||
<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/BooleanInstantiation"/>
|
||||
<rule ref="category/java/performance.xml/ByteInstantiation"/>
|
||||
|
@ -250,7 +249,6 @@
|
|||
<rule ref="category/java/performance.xml/LongInstantiation"/>
|
||||
<rule ref="category/java/performance.xml/OptimizableToArrayCall"/>
|
||||
<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/StringInstantiation"/>
|
||||
<rule ref="category/java/performance.xml/StringToString"/>
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
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
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -87,7 +87,6 @@ public final class Reasons {
|
|||
* @param statusCode The status code.
|
||||
* @return The reason phrase, or <code>null</code>.
|
||||
*/
|
||||
@SuppressWarnings({"WeakerAccess"})
|
||||
public static String getReasonPhrase(final String statusCode) {
|
||||
return REASON_PHRASES.get(statusCode);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#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.major=1
|
||||
version.minor=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue