Skip to content

Commit b121e25

Browse files
committed
Some more upgrade and clean up
1 parent d51269e commit b121e25

File tree

14 files changed

+44
-41
lines changed

14 files changed

+44
-41
lines changed

api-gateway-service/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>2.2.5.RELEASE</version>
10+
<relativePath/> <!-- lookup parent from repository -->
11+
</parent>
12+
613
<groupId>com.assignment</groupId>
714
<artifactId>api-gateway-service</artifactId>
815
<version>0.0.1-SNAPSHOT</version>
@@ -14,13 +21,6 @@
1421
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
1522
</properties>
1623

17-
<parent>
18-
<groupId>org.springframework.boot</groupId>
19-
<artifactId>spring-boot-starter-parent</artifactId>
20-
<version>2.2.5.RELEASE</version>
21-
<relativePath/> <!-- lookup parent from repository -->
22-
</parent>
23-
2424
<dependencies>
2525
<dependency>
2626
<groupId>org.springframework.boot</groupId>

api-gateway-service/src/main/java/com/assignment/apigatewayservice/security/JwtTokenAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.assignment.apigatewayservice.security;
22

3-
import com.assignment.commonservice.JwtConfig;
3+
import com.javatab.commonservice.JwtConfig;
44
import io.jsonwebtoken.Claims;
55
import io.jsonwebtoken.Jwts;
66
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

api-gateway-service/src/main/java/com/assignment/apigatewayservice/security/SecurityTokenConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.assignment.apigatewayservice.security;
22

3-
import com.assignment.commonservice.JwtConfig;
3+
import com.javatab.commonservice.JwtConfig;
44
import org.springframework.beans.factory.annotation.Autowired;
55
import org.springframework.context.annotation.Bean;
66
import org.springframework.http.HttpMethod;

auth-service/pom.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>2.5.4</version>
10+
<relativePath/> <!-- lookup parent from repository -->
11+
</parent>
12+
613
<groupId>com.assignment</groupId>
714
<artifactId>auth-service</artifactId>
815
<version>0.0.1-SNAPSHOT</version>
@@ -11,15 +18,10 @@
1118

1219
<properties>
1320
<java.version>11</java.version>
14-
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
21+
<spring-cloud.version>2020.0.3</spring-cloud.version>
1522
</properties>
1623

17-
<parent>
18-
<groupId>org.springframework.boot</groupId>
19-
<artifactId>spring-boot-starter-parent</artifactId>
20-
<version>2.2.5.RELEASE</version>
21-
<relativePath/> <!-- lookup parent from repository -->
22-
</parent>
24+
2325

2426
<dependencies>
2527
<dependency>

auth-service/src/main/java/com/assignment/authservice/security/JwtUsernameAndPasswordAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.assignment.authservice.security;
22

33
import com.assignment.authservice.model.LoggedInUserDetails;
4-
import com.assignment.commonservice.JwtConfig;
4+
import com.javatab.commonservice.JwtConfig;
55
import com.fasterxml.jackson.databind.ObjectMapper;
66
import com.google.gson.Gson;
77
import io.jsonwebtoken.Jwts;

auth-service/src/main/java/com/assignment/authservice/security/SecurityCredentialsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.assignment.authservice.security;
22

3-
import com.assignment.commonservice.JwtConfig;
3+
import com.javatab.commonservice.JwtConfig;
44
import org.springframework.beans.factory.annotation.Autowired;
55
import org.springframework.context.annotation.Bean;
66
import org.springframework.http.HttpMethod;

common-service/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.1.5.RELEASE</version>
8+
<version>2.5.4</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
11-
<groupId>com.assignment</groupId>
11+
<groupId>com.javatab</groupId>
1212
<artifactId>common-service</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
1414
<name>common-service</name>
1515
<description>Demo project for Spring Boot</description>
1616

1717
<properties>
1818
<java.version>1.8</java.version>
19-
<spring-cloud.version>Greenwich.SR1</spring-cloud.version>
19+
<spring-cloud.version>2020.0.3</spring-cloud.version>
2020
</properties>
2121

2222
<dependencies>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.assignment.commonservice;
1+
package com.javatab.commonservice;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

common-service/src/main/java/com/assignment/commonservice/JwtConfig.java renamed to common-service/src/main/java/com/javatab/commonservice/JwtConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.assignment.commonservice;
1+
package com.javatab.commonservice;
22

33
import lombok.Getter;
44
import lombok.Setter;

common-service/src/main/java/com/assignment/commonservice/UserRole.java renamed to common-service/src/main/java/com/javatab/commonservice/UserRole.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.assignment.commonservice;
1+
package com.javatab.commonservice;
22

33
public enum UserRole {
44
USER, ADMIN;

0 commit comments

Comments
 (0)