Skip to content

Commit

Permalink
perf($POM): reduce useless dependencies
Browse files Browse the repository at this point in the history
1. SFTP
2. Minio
  • Loading branch information
johnnymillergh committed Jun 28, 2021
1 parent cd70390 commit 447e072
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 47 deletions.
10 changes: 10 additions & 0 deletions auth-center/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@
<dependency>
<groupId>com.jmsoftware.maf</groupId>
<artifactId>spring-cloud-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</exclusion>
<exclusion>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- https://github.com/jwtk/jjwt -->
Expand Down
2 changes: 0 additions & 2 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,3 @@ maf:
jwt:
# an hour
ttl: 3600000

# Customize JWT configuration for development environment.
10 changes: 10 additions & 0 deletions maf-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@
<dependency>
<groupId>com.jmsoftware.maf</groupId>
<artifactId>spring-cloud-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
</exclusion>
<exclusion>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- Test -->
Expand Down
6 changes: 0 additions & 6 deletions maf-mis/src/main/resources/application-development-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ spring:
username: maf_rabbitmq_su
password: maf@rabbitmq

sftp:
host: maf-atmoz-sftp-development-docker
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-enabled: true
6 changes: 0 additions & 6 deletions maf-mis/src/main/resources/application-development-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ spring:
username: maf_rabbitmq_su
password: maf@rabbitmq

sftp:
host: localhost
port: 23
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-enabled: true
6 changes: 0 additions & 6 deletions maf-mis/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ spring:
username: maf_rabbitmq_su
password: maf@rabbitmq

sftp:
host: maf-atmoz-sftp-production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-enabled: false
6 changes: 0 additions & 6 deletions maf-mis/src/main/resources/application-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ spring:
username: maf_rabbitmq_su
password: maf@rabbitmq

sftp:
host: maf-atmoz-sftp-production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-enabled: false
6 changes: 0 additions & 6 deletions maf-mis/src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ spring:
username: maf_rabbitmq_su
password: maf@rabbitmq

sftp:
host: maf-atmoz-sftp-production
port: 22
user: johnny
password: atmoz@sftp

maf:
configuration:
swagger-enabled: true
8 changes: 0 additions & 8 deletions maf-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,3 @@ maf:
- "/webjars/**"
- "/doc.html"
included-package-for-http-api-scan: ${maf.project-property.base-package}

sftp:
enabled: true
directory: upload
private-key:
private-key-pass-phrase:
session-cache-size: 20
session-wait-timeout: 15000
4 changes: 4 additions & 0 deletions spring-boot-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
</exclusion>
<exclusion>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down
13 changes: 6 additions & 7 deletions spring-cloud-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
</dependency>

<!-- Spring Integration Dependencies -->
<!-- OSS Dependencies -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-sftp</artifactId>
Expand Down Expand Up @@ -164,11 +169,5 @@
<artifactId>logstash-logback-encoder</artifactId>
<version>${logstash-logback-encoder.version}</version>
</dependency>

<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
</dependencies>
</project>

0 comments on commit 447e072

Please sign in to comment.