diff --git a/README.md b/README.md index 3264c7c..e45c351 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,18 @@ dependencies { implementation 'com.github.Dh3356:rest_interceptor:v{version}' // example: implementation 'com.github.Dh3356:rest_interceptor:v0.1' } + +// Since 1.0.3 +repositories { + ... + maven { url "https://jitpack.io" } +} + +dependencies { + ... + implementation 'com.github.cookie-meringue:rest_interceptor:v{version}' + // example: implementation 'com.github.cookie-meringue:rest_interceptor:v1.0.3' +} ``` ## Sample Code diff --git a/build.gradle b/build.gradle index ad1b0dc..f6133f5 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { id 'maven-publish' } -group = 'dh3356.restful_interceptor' +group = 'cookie-meringue.restful_interceptor' version = '1.0.2' java { @@ -33,7 +33,7 @@ dependencies { publishing { publications { maven(MavenPublication) { - groupId = 'dh3356.restful_interceptor' + groupId = 'cookie-meringue.restful_interceptor' artifactId = 'restful_interceptor' version = '1.0.2' diff --git a/src/main/java/com/restful_spring/rest_interceptor/RestInterceptor.java b/src/main/java/com/restful_spring/rest_interceptor/RestInterceptor.java index 9cf2c34..f111aac 100644 --- a/src/main/java/com/restful_spring/rest_interceptor/RestInterceptor.java +++ b/src/main/java/com/restful_spring/rest_interceptor/RestInterceptor.java @@ -11,7 +11,7 @@ *

Request will always be passed if it is a pre-flight request or it is not matched with any of the * restfulPatterns. * - * @author Dh3356 + * @author cookie-meringue * @since 0.1 */ public abstract class RestInterceptor implements HandlerInterceptor { diff --git a/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistration.java b/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistration.java index 26bbc1c..0777072 100644 --- a/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistration.java +++ b/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistration.java @@ -8,7 +8,7 @@ /** * Assists with the creation of a {@link RestInterceptor}. * - * @author Dh3356 + * @author cookie-meringue * @since 0.1 */ public class RestInterceptorRegistration { diff --git a/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistry.java b/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistry.java index 364ab18..a2980da 100644 --- a/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistry.java +++ b/src/main/java/com/restful_spring/rest_interceptor/RestInterceptorRegistry.java @@ -5,7 +5,7 @@ /** * Helps with configuring a list of RestInterceptors. Adaptor between InterceptorRegistry and RestInterceptor. * - * @author Dh3356 + * @author cookie-meringue * @since 0.1 */ public class RestInterceptorRegistry { diff --git a/src/main/java/com/restful_spring/rest_interceptor/RestfulPattern.java b/src/main/java/com/restful_spring/rest_interceptor/RestfulPattern.java index 2fd70bb..7ef24aa 100644 --- a/src/main/java/com/restful_spring/rest_interceptor/RestfulPattern.java +++ b/src/main/java/com/restful_spring/rest_interceptor/RestfulPattern.java @@ -16,7 +16,7 @@ *

This class is used to match the request URI and HTTP method. *

This class is used by {@link RestInterceptor}. * - * @author Dh3356 + * @author cookie-meringue * @since 0.1 */ public class RestfulPattern { @@ -34,7 +34,7 @@ private RestfulPattern(final String path, final Set methods) { * Create a new instance of {@link RestfulPattern} with the given path. *

Default HTTP methods are GET, POST, PUT, DELETE, PATCH, TRACE, OPTIONS, HEAD. * - * @author Dh3356 + * @author cookie-meringue * @since 1.0 */ public static RestfulPattern fromPath(final String path) { @@ -44,7 +44,7 @@ public static RestfulPattern fromPath(final String path) { /** * Create a new instance of {@link RestfulPattern} with the given path and HTTP methods. * - * @author Dh3356 + * @author cookie-meringue * @since 1.0 */ public static RestfulPattern of(final String path, final HttpMethod... methods) { diff --git a/src/main/java/com/restful_spring/rest_interceptor/RestfulPatterns.java b/src/main/java/com/restful_spring/rest_interceptor/RestfulPatterns.java index 3c310a5..96021d2 100644 --- a/src/main/java/com/restful_spring/rest_interceptor/RestfulPatterns.java +++ b/src/main/java/com/restful_spring/rest_interceptor/RestfulPatterns.java @@ -10,7 +10,7 @@ *

* Encapsulates a Collection of RestfulPattern and provides apis. * - * @author Dh3356 + * @author cookie-meringue * @since Upcoming */ public final class RestfulPatterns { diff --git a/src/test/java/com/restful_spring/rest_interceptor/RestfulPatternTest.java b/src/test/java/com/restful_spring/rest_interceptor/RestfulPatternTest.java index e4d99f8..7d47ad5 100644 --- a/src/test/java/com/restful_spring/rest_interceptor/RestfulPatternTest.java +++ b/src/test/java/com/restful_spring/rest_interceptor/RestfulPatternTest.java @@ -21,7 +21,7 @@ /** * Test class for {@link RestfulPattern}. * - * @author Dh3356 + * @author cookie-meringue * @since 0.2 */ class RestfulPatternTest {