Skip to content

Commit

Permalink
chore(deps): upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjack committed Dec 24, 2023
1 parent 0c8f627 commit 6c0ae99
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
Expand Down
22 changes: 11 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("org.springframework.boot") version "3.1.5"
id("io.spring.dependency-management") version "1.1.3"
id("com.github.ben-manes.versions") version "0.49.0"
id("org.springframework.boot") version "3.2.1"
id("io.spring.dependency-management") version "1.1.4"
id("com.github.ben-manes.versions") version "0.50.0"
id("java")
}

Expand All @@ -20,26 +20,26 @@ repositories {
}

dependencies {
implementation(platform("org.springframework.cloud:spring-cloud-dependencies:2022.0.4"))
implementation(platform("org.springframework.cloud:spring-cloud-dependencies:2023.0.0"))

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client")
implementation("org.springframework.cloud:spring-cloud-starter-openfeign")
implementation("com.github.ben-manes.caffeine:caffeine:3.1.8")
implementation("org.mariadb.jdbc:mariadb-java-client:3.1.4")
implementation("org.flywaydb:flyway-mysql:9.17.0")
implementation("org.flywaydb:flyway-core:9.17.0")
implementation("io.jsonwebtoken:jjwt-api:0.11.5")
implementation("org.mariadb.jdbc:mariadb-java-client:3.3.2")
implementation("org.flywaydb:flyway-mysql:10.4.1")
implementation("org.flywaydb:flyway-core:10.4.1")
implementation("io.jsonwebtoken:jjwt-api:0.12.3")
implementation("com.github.xMrAfonso:Hangar4J:1.2.3") {
exclude(group = "com.google.code.gson", module = "gson")
}
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.github.usefulness:webp-imageio:0.5.1")
implementation("com.github.usefulness:webp-imageio:0.6.0")

runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.5")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.5")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.3")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.12.3")

developmentOnly("org.springframework.boot:spring-boot-devtools")
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public class JwtHandler {
private String secret;

public Claims parse(String token) throws JwtException {
return parser.parseClaimsJws(token).getBody();
return parser.parseSignedClaims(token).getPayload();
}

@PostConstruct
public void postConstruct() {
SecretKey secretKey = Keys.hmacShaKeyFor(secret.getBytes());
this.parser = Jwts.parserBuilder().setSigningKey(secretKey).build();
this.parser = Jwts.parser().verifyWith(secretKey).build();
}

public String getUri() {
Expand Down

0 comments on commit 6c0ae99

Please sign in to comment.