Skip to content

Commit

Permalink
perf($POM): flatten parent dependencies
Browse files Browse the repository at this point in the history
[CAUTION!]
All the dependencies are in parent pom should be utilization dependency
  • Loading branch information
Johnny Miller (锺俊) committed Dec 18, 2020
1 parent 02510b1 commit e69537a
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 26 deletions.
12 changes: 12 additions & 0 deletions api-portal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.jmsoftware.maf</groupId>
Expand Down
12 changes: 12 additions & 0 deletions auth-center/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.jmsoftware.maf</groupId>
Expand Down
12 changes: 12 additions & 0 deletions exercise-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.jmsoftware.maf</groupId>
Expand Down
6 changes: 6 additions & 0 deletions gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.playtika.reactivefeign</groupId>
Expand Down
12 changes: 12 additions & 0 deletions muscle-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.jmsoftware.maf</groupId>
Expand Down
35 changes: 9 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<knife4j.version>3.0.2</knife4j.version>
<jjwt.version>0.11.1</jjwt.version>
<feign-reactor.version>2.0.25</feign-reactor.version>
<java-faker.version>1.0.2</java-faker.version>
</properties>

<!-- The modules (sometimes called subprojects) to build as a part of this project. -->
Expand Down Expand Up @@ -229,22 +230,17 @@

<!-- Global Dependencies -->
<dependencies>
<!-- Test -->
<!-- Other -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>

<!-- Tool -->
Expand All @@ -263,20 +259,7 @@
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
</dependency>

<!-- Other -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<version>${java-faker.version}</version>
</dependency>

<!-- Swagger: JSON API documentation for spring based applications -->
Expand Down
12 changes: 12 additions & 0 deletions service-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.jmsoftware.maf</groupId>
Expand Down
12 changes: 12 additions & 0 deletions spring-boot-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>${spring-boot-admin-starter-client.version}</version>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.jmsoftware.maf</groupId>
Expand Down

0 comments on commit e69537a

Please sign in to comment.