Bump version of dependencies (#2466)

#### What type of PR is this?

/kind cleanup
/area core
/milestone 2.0

#### What this PR does / why we need it:

This PR mainly upgrades version of dependencies and removes unused dependencies.

See the following references for more:

- https://github.com/spring-projects/spring-boot/releases/tag/v3.0.0-M5
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
- https://github.com/spring-projects/spring-security/issues/6613

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/2472/head
John Niang 2022-09-25 19:22:14 +08:00 committed by GitHub
parent 1da89f04e2
commit 73c66289e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '3.0.0-M4'
id 'org.springframework.boot' version '3.0.0-M5'
id 'io.spring.dependency-management' version '1.0.12.RELEASE'
id "checkstyle"
id 'java'
@ -38,14 +38,13 @@ bootJar {
}
}
ext['h2.version'] = '2.1.210'
ext {
commonsLang3 = "3.12.0"
base62 = "0.1.3"
pf4j = "3.6.0"
pf4j = '3.7.0'
javaDiffUtils = "4.12"
guava = "31.1-jre"
jsoup = "1.15.2"
jsoup = '1.15.3'
jsonPatch = "1.13"
}
@ -63,10 +62,8 @@ dependencies {
implementation 'org.springframework.security:spring-security-oauth2-jose'
implementation 'org.springframework.security:spring-security-oauth2-resource-server'
implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.0.0-M3'
implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.0.0-M5'
implementation 'org.openapi4j:openapi-schema-validator:1.0.7'
implementation "org.flywaydb:flyway-core"
implementation "org.flywaydb:flyway-mysql"
implementation "net.bytebuddy:byte-buddy"
implementation "org.apache.commons:commons-lang3:$commonsLang3"

View File

@ -11,6 +11,7 @@ import java.util.Arrays;
import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
@ -48,6 +49,7 @@ import run.halo.app.security.authorization.RequestInfoAuthorizationManager;
*
* @author johnniang
*/
@Configuration
@EnableWebFluxSecurity
public class WebServerSecurityConfig {