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 bdc3ae6 commit dd2a0e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prepare environment
FROM alpine:3.18
RUN apk add openjdk16
FROM alpine:3.19
RUN apk add openjdk21

# Download source code
RUN git clone https://github.com/MCBanners/api-gateway /app
Expand Down
13 changes: 7 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("org.springframework.boot") version "3.1.5"
id("io.spring.dependency-management") version "1.1.3"
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 @@ -19,17 +20,17 @@ repositories {

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

// spring dependencies
implementation("org.springframework.cloud:spring-cloud-starter-gateway")
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client")
developmentOnly("org.springframework.boot:spring-boot-devtools")

// jwt dependencies
implementation("io.jsonwebtoken:jjwt-api:0.11.5")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.5")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.5")
implementation("io.jsonwebtoken:jjwt-api:0.12.3")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.3")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.12.3")
}

tasks {
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 @@ -26,7 +26,7 @@ public class JwtHandler {
@PostConstruct
protected void postConstruct() {
SecretKey secretKey = Keys.hmacShaKeyFor(secret.getBytes());
this.parser = Jwts.parserBuilder().setSigningKey(secretKey).build();
this.parser = Jwts.parser().verifyWith(secretKey).build();
}

public void parse(String token) throws JwtException {
Expand Down

0 comments on commit dd2a0e4

Please sign in to comment.