Skip to content

Commit

Permalink
Release 1.0.1 (For Spring Boot 2.6.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
naturalprogrammer committed Nov 20, 2021
1 parent 582967d commit aa0e992
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lemon-demo-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lemon.recaptcha.sitekey="
})
@AutoConfigureMockMvc
@AutoConfigureTestDatabase(connection = EmbeddedDatabaseConnection.HSQL)
@AutoConfigureTestDatabase(connection = EmbeddedDatabaseConnection.HSQLDB)
@Sql({"/test-data/initialize.sql", "/test-data/finalize.sql"})
public abstract class AbstractMvcTests {

Expand Down
2 changes: 1 addition & 1 deletion lemon-demo-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
<packaging>pom</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down Expand Up @@ -40,7 +40,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.2</version>
<version>2.6.0</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>

Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-commons-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-commons-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-commons-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright 2020-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this artifact or file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.naturalprogrammer.spring.lemon.commonsreactive.exceptions.handlers;

import com.naturalprogrammer.spring.lemon.exceptions.handlers.AbstractExceptionHandler;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.InsufficientAuthenticationException;
import org.springframework.stereotype.Component;

@Component
@Order(Ordered.LOWEST_PRECEDENCE)
public class InsufficientAuthenticationExceptionHandler extends AbstractExceptionHandler<InsufficientAuthenticationException> {

public InsufficientAuthenticationExceptionHandler() {
super(InsufficientAuthenticationException.class);
log.info("Created");
}

@Override
public HttpStatus getStatus(InsufficientAuthenticationException ex) {
return HttpStatus.FORBIDDEN;
}
}
2 changes: 1 addition & 1 deletion spring-lemon-commons-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-exceptions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-lemon-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<parent>
<groupId>com.naturalprogrammer</groupId>
<artifactId>spring-lemon</artifactId>
<version>1.0.0.RC7</version>
<version>1.0.1</version>
</parent>

<dependencies>
Expand Down

0 comments on commit aa0e992

Please sign in to comment.