diff --git a/README.md b/README.md
index 101a07f..808a8a2 100644
--- a/README.md
+++ b/README.md
@@ -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:
net.thauvin.erik.httpstatus
httpstatus
- 1.0.5
+ 1.0.6
```
@@ -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
diff --git a/build.gradle b/build.gradle
index f7ab512..55810fd 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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'
}
diff --git a/config/pmd.xml b/config/pmd.xml
index 32ca5ab..2ce525b 100644
--- a/config/pmd.xml
+++ b/config/pmd.xml
@@ -237,7 +237,6 @@
-
@@ -250,7 +249,6 @@
-
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 442d913..f371643 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -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
diff --git a/src/main/java/net/thauvin/erik/httpstatus/Reasons.java b/src/main/java/net/thauvin/erik/httpstatus/Reasons.java
index 14bc9a1..e551ce0 100644
--- a/src/main/java/net/thauvin/erik/httpstatus/Reasons.java
+++ b/src/main/java/net/thauvin/erik/httpstatus/Reasons.java
@@ -87,7 +87,6 @@ public final class Reasons {
* @param statusCode The status code.
* @return The reason phrase, or null
.
*/
- @SuppressWarnings({"WeakerAccess"})
public static String getReasonPhrase(final String statusCode) {
return REASON_PHRASES.get(statusCode);
}
@@ -118,4 +117,4 @@ public final class Reasons {
System.out.println("Total: " + REASON_PHRASES.size());
}
}
-}
\ No newline at end of file
+}
diff --git a/version.properties b/version.properties
index 2759f0f..9ba483e 100644
--- a/version.properties
+++ b/version.properties
@@ -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